This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.
Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.
Project: Window State Components.
Unit: PJWdwState.
Class: TPJWdwState
Applies to: ~>5.0
procedure Restore;
This method restores the size and position of the owning form’s window according to value saved in a specified section of an ini file. If the ini file or section do not exist then this method has no effect.
Various values of the Options property may cause either the saved size or state to be ignored or for the window to be repositioned (and possibly resized) to fit within the desktop’s work area.
If the AutoSaveRestore property is true Restore is called automatically when the window is created.
The process used to determine what the ini file name to use changed at v5.5:
<5.5
The ini file name is determined by the IniFileName property and the section within it that contains the window state data is determined by the Section property.
Any OnGetIniData event handler can override any of these property values.
~>5.5
The ini file name is determined by both the IniRootDir and IniFileName properties and the section within it that contains the window state data is determined by the Section property.
Any OnGetIniDataEx or OnGetIniData event handler can override any of these property values.