Sign in Join
FPDoc Onlineexperiment

TToggledCheckboxEvent procedure type

In unit Grids

Specifies an event handler signalled when the value in a check box cell is changed.

Declaration

pascal
TToggledCheckboxEvent = procedure(Sender: TObject; aCol: Integer; 
 aRow: Integer; aState: TCheckboxState)
 of object

Arguments

Sender

Grid control for the event notification.

aCol

Column number for the altered cell.

aRow

Row number for the altered cell.

aState

State for the check box in the associated cell editor.

Description

TToggledCheckboxEvent specifies an event handler signalled when the value in CheckBox-style cell is changed in a grid. Arguments passed to the event handler identify the grid control for the event notification, the row and column numbers for the altered cell, and the state for a check box cell editor.

TToggledCheckboxEvent is the type used to implement the OnCheckboxToggled in TCustomGrid and descendent classes. Applications must implement an object procedure using the signature for the event handler to respond to the event notification.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.