Sign in Join
FPDoc Onlineexperiment

TCheckListBox.OnItemClick property deprecated

Member of TCheckListBoxpublishedIn unit CheckLst

Use OnClickCheck instead

Deprecated. Event handler signalled when the check box state for a specific item has been changed.

Declaration

pascal
property OnItemClick: ; deprecated;

Description

OnItemClick is a TCheckListClicked property with the event handler signalled when the check box state has been changed for a specific item in the check list control.

OnItemClick can be used to perform actions needed when the check box State has been toggled. Arguments passed to the event handler identify the check list control (Sender) and the position of the check box (Index) in the Items for the control.

Applications must assign an object procedure that implements the signature for the event handler to respond to the notification.

OnItemClick is signalled from the ItemClick method when the control executes its DoChange (private) or KeyDown methods. This means that the event is signalled when a check box is clicked with the mouse, and when the Space key is pressed on a selected item in the control.

OnItemClick is signalled after the OnClickCheck event handler, and before event handlers like OnSelectionChange and OnClick.

OnClickCheck and OnItemClick are not signalled when the checked state for an item is changed in code using Checked, State, CheckAll, or Toggle.

Use OnClickCheck to perform control-level actions needed when a check box is changed.

This description is the one of CheckLst.TCustomCheckListBox.OnItemClick.

See also

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