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

TCustomShellListView.CreateListItem

Create a new entry added to the Items for the shell control.

Declaration

Source position: shellctrls.pas line 281

protected function TCustomShellListView.CreateListItem: TListItem; override;

Description

CreateListItem is an overridden TListItem function in TCustomShellListView. It ensures that the TShellListItem class type is used for new Items added to the shell control. If an OnCreateItemClass event handler has been assigned, the inherited method in TCustomListView is called to confirm/override the item class used and to create the new instance added to Items.

The return value contains the new TListItem (or descendent) class instance created for the list item in the method.

Version info

Added in LCL version 3.0.

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.

TListItem

  

Represents the items created in TCustomListView and descendants.

TListItems.Add

  

Adds a new list item to the container.


Version 4.0 Generated 2025-05-03 Home