JVCL Help:TJvStringGrid.DrawCell
JVCL Help: TJvStringGrid.DrawCell Method
Search in JVCL Help
Search in all projectsSummary
Draws the cell specified by the ACol and ARow parameters.
Pascal
procedureDrawCell(AColumn: Longint; ARow: Longint; Rect: TRect; State: TGridDrawState); override;
Parameters
Parameters | Description |
AColumn: Longint | Indicate the column index of the cell that should be drawn. |
ARow: Longint | Indicate the row index of the cell that should be drawn. |
Rect: TRect | Indicates the location of the cell on the canvas. |
State: TGridDrawState | Indicates whether the cell has input focus, whether the cell is selected, and whether the cell is a fixed (nonscrolling) cell. |
Description
DrawCell is called automatically whenever a cell in the grid is drawn. It overrides the inherited method to notify the user of events and use the Alignment property when drawing cells in the grid.
DrawCell checks if the OnDrawCell event handler is assigned, if so an OnDrawCell event is fired and the user is responsible for drawing the cell.
If the OnDrawCell event handler is not assigned, then TJvStringGrid fires the OnSetCanvasProperties event and finally calls DefaultDrawCell.
See Also
TJvStringGrid.DefaultDrawCell, TJvStringGrid.OnSetCanvasProperties
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page