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.

SaveWdwState method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJRegWdwState

Applies to: ~>5.0

procedure SaveWdwState(
  const Left, Top, Width, Height, State: Integer
); override;


SaveWdwState is used to write a window’s size, position and state to the registry.

This protected method is overridden by TPJRegWdwState to save the window’s state, size and position information to the registry. Before saving the data SaveWdwState triggers either the OnGetRegData or the OnGetRegDataEx [~>5.6] event to enable the user to change the registry key to use to save the state data.

The position of the window is given by the Left and Top parameters, the size by the Width and Height parameters and the State parameter is the ordinal value of a member of the TWindowState enumeration: wsMinimized, wsMaximized or wsNormal.

This method is called by the Save method.