Welcome to the new DelphiDabbler Code Library Documentation.

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.

Restore method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJCustomWdwState

Applies to: ~>5.0

procedure Restore;


This method restores the size, position and state of the owning form’s window according to saved values.

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 appropriate monitor’s desktop work area.

If the AutoSaveRestore property is true Restore is called automatically when the window is created. If AutoSaveRestore is false then Restore must be called from code to restore the window. The form’s OnShow event handler is a good place to do this.