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

TCustomListView.OnCreateItemClass

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

Declaration

Source position: comctrls.pp line 1595

protected property TCustomListView.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

TCustomListView.CreateListItem

  

Signals the OnCreateItemClass event handler to get the class type used for new list items, and creates a new list item.

TCustomListView.Items

  

Collection of list items displayed on the list view control.

TListItem

  

Represents the items created in TCustomListView and descendants.


Version 3.2 Generated 2024-02-25 Home