[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.DrawThemedCell

Draws a cell using the theme services for the specified grid drawing state.

Declaration

Source position: grids.pas line 1059

protected procedure TCustomGrid.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

TCustomDrawGrid.DefaultDrawCell

  

The default method used to draw the cell at the given position using a specific state.


Version 4.0 Generated 2025-05-03 Home