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

TCustomListView.OnChange

Event handler signalled when the content for a list item is changed.

Declaration

Source position: comctrls.pp line 1592

protected property TCustomListView.OnChange : TLVChangeEvent
  read FOnChange
  write FOnChange;

Description

OnChange is a TLVChangeEvent property with the event handler signalled when property values for a list item have been changed. OnChange is signalled from the Change method, which is called when a LVN_ITEMCHANGED control notification message is handled for the control.

Argument passed to the event handler identify the list view control, the list item updated in the message, and a change constant that identifies the value updated in the list item. The constant represents whether the text, image, or state for the list item has been altered.

Use the OnSelectItem event handler to perform actions needed when the selected list item has changed for the control. Use OnItemChecked to perform actions needed when the checked state for a list item has been changed.


Version 3.2 Generated 2024-02-25 Home