Class TPropSaveMain
Unit
PropSaveMain
Declaration
type TPropSaveMain = class(TComponent)
Description
Main component which provides hook functions and re/stores standard components. It also finds all TCustomPropSave descendants on the form linked to PropSaveMain and call TCustomPropSave.ReadSaveProps procedure to re/store properties of other controls
Hierarchy
Overview
Fields
Methods
Properties
Description
Fields
|
IsMaximized: boolean; |
indicates whether form was stored in maximized state
|
Methods
|
procedure SetParent(AParent: TComponent; UseFormEvent: boolean = false); |
define parent component (Form or Frame), needed only in special cases
|
|
function GetFormKey: string; |
returns key string for active form
|
|
procedure SaveProperties; |
saves all properties on app request
|
|
procedure ReadProperties; |
reads all properties on app request
|
|
procedure DeleteProperties; |
delete all properties on app request
|
|
function FormIsSaved: boolean; |
indicates whether form was already stored
|
Properties
|
property FormKey: string read FFormKey write FFormKey; |
key string for the form, if empty Owner form name is used
|
|
property PropSaveFile: TPropSaveFile read FPropSaveFile write SetPropSaveFile; |
link to TPropSaveFile, usually app use only one PropSaveFile for all forms
|
|
property FormSavePos: boolean read FFormSavePos write FFormSavePos default true; |
defines whether form position is re/stored
|
|
property FormLimitToScreen: boolean read FFormLimitToScreen write FFormLimitToScreen default true; |
defines whether form position is limited to screen after restoring, ie. when screen resolution was changed
|
|
property OnSaveProperties: TOnReadSaveProp read FOnSaveProperties write FOnSaveProperties; |
called after standard storing and could be used for storing of user defined properties
|
|
property OnReadProperties: TOnReadSaveProp read FOnReadProperties write FOnReadProperties; |
called after standard restoring and could be used for restoring of user defined properties
|
Generated by PasDoc 0.15.0.
|