Sign in Join
FPDoc Onlineexperiment

TCustomCheckListBox.ItemClick procedure deprecated

Member of TCustomCheckListBoxprotectedIn unit CheckLst

Use ClickCheck instead

Deprecated. Performs actions when the specified check box has been changed using the mouse or the keyboard.

Declaration

pascal
procedure ItemClick(const AIndex: Integer); virtual

Arguments

AIndex

Ordinal position for the check box.

Description

ItemClick is a method used to perform actions need when the value for the check box item in AIndex has been changed. AIndex is the ordinal position for the check box in the Items for the control. ItemClick signals the OnItemClick event handler (when assigned) using the current class instance and the value in AIndex as arguments.

ItemClick is called when the LM_CHANGED message is handled for the control, and occurs after the ClickCheck method has been called to signal the OnClickCheck event handler.

ItemClick is also called from the KeyDown method when the Space key has been pressed while the control is focused. It occurs after the value in ItemIndex is range adjusted (if needed) and the inherited Click method has been called. In addition, the value in Checked has already been toggled before the method is called. ItemClick is not called for the key event when the check box item in ItemIndex is not enabled.

Deprecated in LCL version 3.99; use ClickCheck instead.

See also

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