SaveWdwState method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJWdwState

Applies to: ~>5.0

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

Description

SaveWdwState is used to write a window’s size, position and state to an ini file.

This protected method is overridden by TPJWdwState to save the window’s state, size and position information to an in file. Before saving the data SaveWdwState triggers the OnGetIniData event (or, ~>5.5, OnGetIniDataEx) to enable the user to change the location and name of the ini file and the section within it where the data is to be saved.

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.