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

TCustomGrid.DoPrepareCanvas

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

Declaration

Source position: grids.pas line 1024

protected procedure TCustomGrid.DoPrepareCanvas(

  aCol: Integer;

  aRow: Integer;

  aState: TGridDrawState

); virtual;

Description

Signals the OnPrepareCanvas event handler (when assigned) to prepare the Canvas for the cell using the specified state. Called from the PrepareCavas method. Allows the default actions performed in the caller to be overridden.