Sign in Join
FPDoc Onlineexperiment

TOnPrepareCanvasEvent procedure type

In unit Grids

Specifies an event handler signalled when preparing the canvas for a grid control.

Declaration

pascal
TOnPrepareCanvasEvent = procedure(Sender: TObject; aCol: Integer; 
 aRow: Integer; aState: TGridDrawState)
 of object

Arguments

Sender

Grid control for the event notification.

aCol

Column number for the cell in the event notification.

aRow

Row number for the cell in the event notification.

aState

Grid drawing state for the cell in the event notification.

Description

TOnPrepareCanvasEvent specifies an event handler signalled when the canvas for a grid control is prepared for rendering. TOnPrepareCanvasEvent allows the canvas for the grid control to be configured prior to rendering cell data.

Sender is the grid control triggering the event notification.

ACol and ARow are the column and row numbers (respectively) for the grid cell in the event notification.

AState contains the grid drawing state for the cell data.

TOnPrepareCanvasEvent is the type used to implement the OnPrepareCanvas in TCustomGrid. Applications must implement an object procedure using the event signature to respond to the event notification.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.