[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Prepares the canvas and signals OnPrepareCanvas
Source position: dbgrids.pas line 438
protected procedure TCustomDBGrid.DoPrepareCanvas( |
aCol: Integer; |
aRow: Integer; |
aState: TGridDrawState |
); override; |
aCol |
|
Column number for the operation |
aRow |
|
Row number for the operation |
aState |
|
Drawing state for the operation |
DoPrepareCanvas is an overridden procedure used to prepare the Canvas to draw a cell in the grid control. DoPrepareCanvas applies to data cells and performs no actions in the method when aRow refers to a fixed row in the control. In addition, DoPrepareCanvas applies only when DefaultDrawing contains False. No actions are performed in the method when DefaultDrawing is enabled.
DoPrepareCanvas calls GetSelectedState to determine if the Canvas is updated with brush and font colors used to draw in a selected state. DoPrepareCanvas signals the OnPrepareCanvas event handler when it has been assigned for the control using the specified column number and drawing state.
|
DoPrepareCanvas - get the canvas ready for drawing |
lazarus-ccr.sourceforge.net |