Sign in Join
FPDoc Onlineexperiment

TCustomGrid.DrawButtonCell procedure

Member of TCustomGridprotectedIn unit Grids

Draws a cell in a button-style column.

Declaration

pascal
procedure DrawButtonCell(const aCol: Integer; const aRow: Integer; 
 aRect: TRect; const aState: TGridDrawState)

Description

DrawButtonCell is a method used to draw a cell which appears in a button-style column. DrawButtonCell uses ThemeServices to get the theme element details used to render the button for the cell.

AState contains the drawing state for the button, and determines the theme element details used for the drawing state. The ThemeServices.DrawElement method is called to render the button on the control Canvas at the location specified in ARect.

DrawButtonCell is called from DefaultDrawCell when the column has a button-style definition.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.