TCustomGrid.DrawThemedCell procedure
Draws a cell using the theme services for the specified grid drawing state.
Declaration
procedure DrawThemedCell(aCol: Integer; aRow: Integer; aRect: TRect;
aState: TGridDrawState)Arguments
aCol | Column number for the affected cell. |
aRow | Row number for the affected cell. |
aRect | Screen coordinates for the cell. |
aState | Grid drawing state for the cell. |
Description
DrawThemedCell is a procedure used to draw the cell at the
specified coordinates using the theme services for the platform or widget set.
aCol contains the column number for the affected cell.
aRow contains the row number for the affected cell.
aRect contains the screen coordinates for the cell rendered in the
method.
aState contains the grid drawing state applied to the cell. aState
contains a value from the
TGridDrawState enumeration that
determines the theme service element details used for the drawing operation.
| Grid Draw State | Theme Element | Description |
| gdPushed | thHeaderItemPressed | Draws the cell using the Pressed state |
| gdHot | thHeaderItemHot | Draws the cell using the Hotlighted state |
| Other states | thHeaderItemNormal | Draws the cell using the normal drawing state |
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
