Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 925 Bytes

TPJCustomWdwState-Restore.md

File metadata and controls

21 lines (12 loc) · 925 Bytes

Restore method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJCustomWdwState

Applies to: ~>5.0

procedure Restore;

Description

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.