Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.01 KB

TPJCustomWdwState-ReadWdwState.md

File metadata and controls

25 lines (15 loc) · 1.01 KB

ReadWdwState method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJCustomWdwState

Applies to: ~>5.0

procedure ReadWdwState(
  var Left, Top, Width, Height, State: Integer
); virtual; abstract;

Description

Protected method used to read a window's size, position and state from storage.

This virtual abstract method must be overridden by descendant components to read the window's state, size and position information from a supported storage type.

The position of the window is returned in the Left and Top parameters, the size in the Width and Height parameters and the state in the State parameter. State should be the ordinal value of a member of the TWindowState enumeration: wsMinimized, wsMaximized or wsNormal. The parameters are set to those currently existing for the associated window on calling the method.

ReadWdwState is called internally by the Restore method.