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

TCustomCheckListBox.OnItemClick (deprecated)

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

Declaration

Source position: checklst.pas line 87

public property TCustomCheckListBox.OnItemClick : TCheckListClicked
  read FOnItemClick
  write FOnItemClick;

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.

Version info

Deprecated in LCL version 3.99; use OnClickCheck instead.

See also

TCustomCheckListBox.ItemClick

  

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

TCustomCheckListBox.KeyDown

  

Handles key down messages for the control.

TCustomCheckListBox.OnClickCheck

  

Event handler signalled when a check box in the control has been changed.

TCheckListClicked

  

Defines an object procedure signalled when an item in TCheckListBox is clicked.

TCustomListBox.Items

  

The list of all items defined in the control.

TCustomListBox.ItemIndex

  

Ordinal position for the currently selected item, -1 if none.

TCustomListBox.OnSelectionChange

  

Handler invoked when an item is selected in the control.

TCustomListBox.OnClick

  

Notification handler for mouse clicks.


Version 4.0 Generated 2025-05-03 Home