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

TCustomDBGrid.GetImageForCheckBox

Gets the bitmap displayed for a Checkbox at the specified location

Declaration

Source position: dbgrids.pas line 473

protected procedure TCustomDBGrid.GetImageForCheckBox(

  const aCol: Integer;

  const aRow: Integer;

  CheckBoxView: TCheckBoxState;

  var ImageList: TCustomImageList;

  var ImageIndex: TImageIndex;

  var Bitmap: TBitmap

); override;

Arguments

CheckBoxView

  

Checkbox state for the column

Description

GetImageForCheckBox is an overridden TBitmap function used to get the bitmap displayed for a Checkbox at the specified location in the grid control. GetImageForCheckBox calls the inherited GetImageForCheckBox method using the passed arguments to get the return value. GetImageForCheckBox signals the OnUserCheckboxBitmap event handler when it has been assigned in the control to allow overriding the TBitmap used for the desired TCheckboxState.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.