TTMSFNCAppFormPersist Class
Non-visual component that automatically saves and restores the size, position, and maximized state of its owner form across application runs.
API unit family: TMSFNCAppFormPersist
Inherits from: TTMSFNCCustomAppFormPersist
Syntax
TTMSFNCAppFormPersist = class(TTMSFNCCustomAppFormPersist)
Remarks
Surfaces the persistence settings of TTMSFNCCustomAppFormPersist as published properties for design-time configuration.
Properties
| Name | Description |
|---|---|
| FileName | Full path of the INI file used to store and retrieve the form settings. (inherited from TTMSFNCCustomAppFormPersist) |
| SaveFileKey | Base name of the section key under which the form settings are stored. (inherited from TTMSFNCCustomAppFormPersist) |
| SavePosition | Determines whether the form position is persisted. (inherited from TTMSFNCCustomAppFormPersist) |
| SaveSize | Determines whether the form size is persisted. (inherited from TTMSFNCCustomAppFormPersist) |
| UseMachineName | Determines whether the machine name is appended to the storage key. (inherited from TTMSFNCCustomAppFormPersist) |
| UseUsername | Determines whether the current user name is appended to the storage key. (inherited from TTMSFNCCustomAppFormPersist) |
Methods
| Name | Description |
|---|---|
| LoadFormSettings | Loads and applies the saved size and position to the owner form immediately. (inherited from TTMSFNCCustomAppFormPersist) |
| SaveFormSettings | Saves the current size and position of the owner form to the settings file immediately. (inherited from TTMSFNCCustomAppFormPersist) |