TCustomGrid.PrepareCanvas procedure
Prepares the canvas for drawing the cell at the specified location.
Declaration
procedure PrepareCanvas(aCol: Integer; aRow: Integer;
aState: TGridDrawState); virtualArguments
aCol | Column number for the cell. |
aRow | Row number for the cell. |
aState | Drawing state applied to the canvas for the specified cell. |
Description
PrepareCanvas ensures that the
Canvas for the control
is properly configured to draw the cell at ACol and ARow using the drawing
state specified in
AState. Flags in AState and the values from the
Options,
Enabled,
DefaultDrawing and
EditorMode properties determine the
Pen,
Brush,
Font, and
TextStyle settings used in
the control
Canvas.
PrepareCanvas is called from ShowCellHintWIndow when truncated
cell hints are enabled in the Options for the grid. It is also
called from DrawCell before drawing the filled rectangle and grid
lines for the cell.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
