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

TCustomDBGrid.DoPrepareCanvas

Prepares the canvas and signals OnPrepareCanvas

Declaration

Source position: dbgrids.pas line 438

protected procedure TCustomDBGrid.DoPrepareCanvas(

  aCol: Integer;

  aRow: Integer;

  aState: TGridDrawState

); override;

Arguments

aCol

  

Column number for the operation

aRow

  

Row number for the operation

aState

  

Drawing state for the operation

Description

DoPrepareCanvas is an overridden procedure used to prepare the Canvas to draw a cell in the grid control. DoPrepareCanvas applies to data cells and performs no actions in the method when aRow refers to a fixed row in the control. In addition, DoPrepareCanvas applies only when DefaultDrawing contains False. No actions are performed in the method when DefaultDrawing is enabled.

DoPrepareCanvas calls GetSelectedState to determine if the Canvas is updated with brush and font colors used to draw in a selected state. DoPrepareCanvas signals the OnPrepareCanvas event handler when it has been assigned for the control using the specified column number and drawing state.

See also

#lcl.Grids.TCustomGrid.DoPrepareCanvas

  

DoPrepareCanvas - get the canvas ready for drawing

The latest version of this document can be found at lazarus-ccr.sourceforge.net.