|
TPJUserWdwState
TPJUserWdwState class description
TPJUserWdwStateProject: Window State Components. Unit: PJWdwState. This non-visual component enables the size, position and state of the form on which it is placed to be saved to and read to any persistent storage. The user is responsible for loading and saving the data. This is done by handling the OnReadData and OnSaveData events. The component is provided in case the user wishes to save control the storage used or the format in which data is written. To use the the registry or an ini file TPJRegWdwState or TPJWdwState respectively can be used. The Save method saves the window information while Restore reads information in and sets the owning form window's size, position and state. The component's AutoSaveRestore property governs whether window sizes, positions and states are automatically restored on opening and saved on closing or whether the user must explicitly call the Save and Restore methods. The Options property can be used to customise how the stored data is interpreted and whether the window's saved state or size should be used or ignored. It is only possible to have one instance of a TPJUserWdwState component on any one form. Neither can a TPJUserWdwState component be dropped onto a form that already contains either a TPJWdwState or a TPJRegWdwState component. TPJUserWdwState exposes the following methods, properties and events, some of which are inherited unchanged from TPJCustomWdwState. Methods
Properties
Events
Note that the protected OnReadWdwState event of TPJCustomWdwState is not exposed by TPJUserWdwState. | ||||||||||||||||||||||||||||||||||