Sign in Join
FPDoc Onlineexperiment

TListView.OnData property

Member of TListViewpublishedIn unit ComCtrls

Event handler signalled to the value(s) for a list item when OwnerData (virtual mode) has been enabled.

Declaration

pascal
property OnData:;

Description

OnData is a TLVDataEvent property with the event handler signalled to get the values for a list item when OwnerData (virtual mode) has been enabled for the list view control.

An application must implement and assign an object procedure using the signature in TLVDataEvent to respond to the event notification. Arguments passed to the event handler identify the list view control (Sender) and the list item (Item). The Index property in Item is pre-populated with the ordinal position for the requested data. The event handler is responsible for setting values for any of the other properties in Item.

OnData is signalled from the DoGetOwnerData method, and is called when the virtual list item accesses its property values.

When OwnerData is enabled, the Items property is not used. Only the most recently accessed item in ItemIndex is available.

This description is the one of ComCtrls.TCustomListView.OnData.

See also

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