Vcl.DBGrids.TCustomDBGrid.DrawCellHighlight
Delphi
procedure DrawCellHighlight(const ARect: TRect;
AState: TGridDrawState; ACol, ARow: Integer); override;
C++
virtual void __fastcall DrawCellHighlight(const System::Types::TRect &ARect, Vcl::Grids::TGridDrawState AState, int ACol, int ARow);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Draws the background of a highlighted cell in the grid.
DrawCellHighlight draws the background of a highlighted cell. If the DefaultDrawing property is true, the background of the highlighted cell is painted before DrawCell is called, and the three-dimensional effects of the fixed cells or the focus rectangle around the focused cell are drawn after DrawCell.
The ACol and ARow parameters give the column and row indexes of the cell that should be drawn. The ARect parameter gives the boundaries of the cell in the coordinates of the canvas. The AState parameter indicates whether the cell is selected, has input focus, or is in the fixed, nonscrolling portion of the grid.