[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TOnPrepareCanvasEvent

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

Declaration

Source position: grids.pas line 368

type 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

TCustomGrid.OnPrepareCanvas

  

Event handler signalled to prepare the Canvas to draw the grid.

TCustomGrid.PrepareCanvas

  

Prepares the canvas for drawing the cell at the specified location.

TCustomGrid.DoPrepareCanvas

  

Performs actions needed to prepare the canvas for a drawing operation.

TCustomGrid.DrawCell

  

Draws a cell using a given state at the specified grid location (Col, Row, rectangle).

TCustomGrid.ShowCellHintWindow

  

Gets and displays the cell hint(s) for the current cell in the grid.


Version 3.2 Generated 2024-02-25 Home