[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Default method used to drawing a cell at the specified location
Source position: dbgrids.pas line 431
protected procedure TCustomDBGrid.DefaultDrawCell( |
aCol: Integer; |
aRow: Integer; |
aRect: TRect; |
aState: TGridDrawState |
); |
DefaultDrawCell is a procedure that provides the default method for drawing a cell at the specified location using different cell types. DefaultDrawCell draws the background for the cell with the specified drawing state. For a cell which appears in a fixed row or column, the text for the cell is also drawn.
When the DataSet for the grid control has rows, the Field used for the specified column is retrieved and the cell is drawn in the manner needed for its column editor style. For checkbox columns, the DrawCheckBoxBitmaps is called. For columns with a button-style editor, the DrawButtonCell method is used. For Fields with a ftMemo data type, the CheckDisplayMemo method is called to determine whether the content in the memo or the DIsplayText for the column definition is drawn. Finally, the DrawCellText method is called to draw the specified cell using its state and value.
lazarus-ccr.sourceforge.net |