Project: Window State Components.
Unit: PJWdwState.
Class: TPJCustomWdwState
Applies to: ~>5.0
procedure Save;
This method saves the state, size and position of the owning form’s window.
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. If AutoSaveRestore is false then Save must be called from code to save the form’s state. A good place to do this is in the form’s OnDestroy event handler.