Sign in Join
FPDoc Onlineexperiment

TCustomListView.CreateListItem function

Member of TCustomListViewprotectedIn unit ComCtrls

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

Declaration

pascal
function CreateListItem: TListItem; virtual

Function result

List item created in the method.

Description

TListItemClass is the default class reference used to create the list item in the method. Use the OnCreateItemClass event handler to provide an alternate class type used for list Items in the control.

Items is assigned as the owner for the list item instance created in the method.

CreateListItem is called from the Add method in TListItems when an Owner has been assigned for the container.

See also

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