Sign in Join
FPDoc Onlineexperiment

TCustomListView.OnCreateItemClass property

Member of TCustomListViewprotectedIn unit ComCtrls

Event handler signalled to get the class reference used to create new list view items.

Declaration

pascal
property OnCreateItemClass: TLVCreateItemClassEvent read FOnCreateItemClass write FOnCreateItemClass;

Description

OnCreateItemClass is a TLVCreateItemClassEvent property with the event handler signalled when a new list item is created in the CreateListItem method. It is signalled (when assigned) to allow a custom list item class type to be used in the list view control.

Arguments passed to the event handler identify the list view control and the default class type used for the list items in the control. TListItem is the default class type used to create and store the values in the Items property.

See also

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