Vcl.Grids.TDrawCellEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TDrawCellEvent = procedure (Sender: TObject; ACol, ARow: Longint;
Rect: TRect; State: TGridDrawState) of object;

C++

typedef void __fastcall (__closure *TDrawCellEvent)(System::TObject* Sender, System::LongInt ACol, System::LongInt ARow, const System::Types::TRect &Rect, TGridDrawState State);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids Vcl.Grids

Description

Function type for OnDrawCell event.

TDrawCellEvent is the function type for a OnDrawCell event. Its parameters are described in this table.



Parameter Meaning

Sender

Grid in which cell is being drawn.

ACol, ARow

Column and row indexes of the cell being drawn.

Rect

Location of cell on canvas.

State

TGridDrawState that indicates whether the cell has input focus, whether the cell is selected, and whether the cell is a fixed (nonscrolling) cell.



See Also