TCustomDBGrid.DrawCell procedure
DrawCell renders the specified grid cell using the specified drawing state.
Declaration
procedure DrawCell(aCol: Integer; aRow: Integer; aRect: TRect;
aState: TGridDrawState); overrideArguments
aCol | Column number for the cell. |
aRow | Row number for the cell. |
aRect | Rectangle where the cell is drawn. |
aState | Drawing state for the cell. |
Description
DrawCell is an overridden method in
TCustomDBGrid. It
re-implements the method introduced in the ancestor class, and does
not
call the inherited method.
DrawCell is used to render a cell at the specified coordinates with the specified drawing state. It calls PrepareCanvas to update the settings in the control Canvas to use the Color, Brush color and style, and Font typeface and style properties needed for the control.
DrawCell calls DefaultDrawCell when DefaultDrawing is enabled for the grid control. DrawCellBackground is called when DefaultDrawing has not been enabled.
The DrawCellGrid method is called to render the separator lines for the grid control prior to exit.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
