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

TCustomCheckListBox.ItemClick (deprecated)

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

Declaration

Source position: checklst.pas line 69

protected procedure TCustomCheckListBox.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.

Version info

Deprecated in LCL version 3.99; use ClickCheck instead.

See also

TCustomCheckListBox.OnItemClick

  

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

TCustomCheckListBox.ClickCheck

  

Performs actions needed when a value in the control is about to change.

TCustomCheckListBox.OnClickCheck

  

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

TCustomCheckListBox.KeyDown

  

Handles key down messages for the control.

TCustomCheckListBox.Checked

  

Provides indexed access to the Boolean Checked or Unchecked state for Items in the control.

TCustomCheckListBox.ItemEnabled

  

Provides indexed access to the enabled state for Items in the control.


Version 4.0 Generated 2025-05-03 Home