Vcl.Grids.TCustomGrid.DrawCellHighlight

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DrawCellHighlight(const ARect: TRect;
AState: TGridDrawState; ACol, ARow: Integer); virtual;

C++

virtual void __fastcall DrawCellHighlight(const System::Types::TRect &ARect, TGridDrawState AState, int ACol, int ARow);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomGrid

Description

Draws the background of a highlighted cell in the grid.

DrawCellHighlight draws the background of a highlighted cell. Descendants of TCustomGrid can override the DrawCellHighlight method to implement custom drawing techniques.

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 is drawn after DrawCellHighlight.

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.

See Also