RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Grids.TDrawCellEvent Type

Function type for OnDrawCell event.

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

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!