[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Prepares the Canvas to render the specified cell with the drawing state in aState.
Source position: dbgrids.pas line 500
protected procedure TCustomDBGrid.PrepareCanvas( |
aCol: Integer; |
aRow: Integer; |
aState: TGridDrawState |
); override; |
aCol |
|
Column number for the cell. |
aRow |
|
Row number for the cell. |
aState |
|
Grid draw state for the cell. |
PrepareCanvas is an overridden method in TCustomDBGrid. It ensures that the Canvas is configured to use the drawing state in aState. PrepareCanvas calls the inherited PrepareCanvas method, and sets the brush color in the Canvas to the value needed for fixed or focused / selected columns.
PrepareCanvas is called from the DrawCell method. It occurs before default drawing is performed, and before the OnDrawColumnCell or OnDrawColumnTitle event handlers are signalled.
|
DrawCell renders the specified grid cell using the specified drawing state. |
|
|
Event handler signalled when a cell needs to be drawn. |
|
|
Event handler signalled when a cell title needs to be drawn. |
|
|
Event handler signalled when a cell title needs to be drawn. |
|
|
Event handler signalled to prepare the grid canvas for drawing a cell. |
|
|
Prepares the canvas and signals the OnPrepareCanvas event handler. |
|
|
Prepares the canvas for drawing the cell at the specified location. |
|
|
Performs actions needed to prepare the canvas for a drawing operation. |
Version 3.2 | Generated 2024-02-25 | Home |