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

TCustomDBGrid.PrepareCanvas

Prepares the Canvas to render the specified cell with the drawing state in aState.

Declaration

Source position: dbgrids.pas line 500

protected procedure TCustomDBGrid.PrepareCanvas(

  aCol: Integer;

  aRow: Integer;

  aState: TGridDrawState

); override;

Description

PrepareCanvas configures the Canvas used to render the cell at the specified position with the drawing state in aState. PrepareCanvas calls the inherited PrepareCanvas method and sets the brush color in the Canvas to the value need for fixed or focused/selected columns.

See also

TCustomGrid.PrepareCanvas

  

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