OnReadData event

Project: Window State Components.

Unit: PJWdwState.

Class: TPJUserWdwState

Applies to: ~>5.0

type
  TPJWdwStateReadData = procedure(
    Sender: TObject; var Data: TPJWdwStateData
  ) of object;

property OnReadData: TPJWdwStateReadData;

Description

OnReadData is triggered when the component is about to restore the window’s size, position and state and needs to retrieve saved window state data from persistent storage.

The user must handle this event by reading the required data from storage and storing the data in the fields of the Data parameter, which is a TPJWdwStateData record.

See Also