Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 1.03 KB

TPJRegWdwState-Restore.md

File metadata and controls

21 lines (12 loc) · 1.03 KB

Restore method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJRegWdwState

Applies to: ~>5.0

procedure Restore;

Description

This method restores the size and position of the owning form's window according to value saved in a specified part of the Windows registry. The root and sub keys of the registry where the information is stored are specfied by the RootKey or RootKeyEx [~>5.6] and SubKey properties. If the key does not exist in the registry 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.