Vcl.DBGrids.TCustomDBGrid.DrawCellBackground

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DrawCellBackground(const ARect: TRect; AColor: TColor;
AState: TGridDrawState; ACol, ARow: Integer); override;

C++

virtual void __fastcall DrawCellBackground(const System::Types::TRect &ARect, System::Uitypes::TColor AColor, 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 cell in the grid.

DrawCellBackground draws the background of a cell. If the DefaultDrawing property is true, the background of the cell is painted before DrawCell is called, and the three-dimensional effects of the fixed cells or the focus rectangle around the focused cell is drawn after DrawCell.

The ACol and ARow parameters give the column and row the 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, non-scrolling portion of the grid.

See Also