Vcl.Samples.Calendar.TCalendar.DrawCell
Delphi
procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState); override;
C++
virtual void __fastcall DrawCell(int ACol, int ARow, const System::Types::TRect &ARect, Vcl::Grids::TGridDrawState AState);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | Vcl.Samples.Calendar.pas Vcl.Samples.Calendar.hpp |
Vcl.Samples.Calendar | TCalendar |
Description
Method that draws the contents of a cell in the calendar's grid.
The DrawCell method is used to draw the contents of the cell.
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, whether the cell has input focus, and whether the cell is in the fixed, non-scrolling portion of the grid.