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.

Save method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJUserWdwState

Applies to: ~>5.0

procedure Save;


This method saves the state, size and position of the owning form’s window to persistent storage. The OnSaveData event is triggered by this method. The user must handle the event by saving the provided window state data.

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.