Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 1005 Bytes

TPJRegWdwState-Save.md

File metadata and controls

21 lines (12 loc) · 1005 Bytes

Save method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJRegWdwState

Applies to: ~>5.0

procedure Save;

Description

This method saves the state, size and position of the owning form's window in the registry. The root and sub keys of the registry where the information is saved are specfied by the RootKey or RootKeyEx [~>5.6] and SubKey properties. If the registry key does not exist it is created. If it is not possible to create the key then the information is not saved.

For MDI child forms the window's top and left coordinates are relative to the MDI main form's client area. For other, top level, windows the coordinates are relative to the screen.

If the AutoSaveRestore property is true then Save is called automatically when the window is destroyed.