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

TCustomTreeView.CreateNode

CreateNode - creates a new node in a TreeView and returns its content.

Declaration

Source position: comctrls.pp line 3546

protected function TCustomTreeView.CreateNode: TTreeNode; virtual;

Function result

New tree node instance created in the method.

Description

CreateNode is a TTreeNode function used to create a new tree node for the control. The OnCustomCreateItem event handler is signalled (when assigned) to create the class instance used as the return value. If the event handler has not been assigned, or returns a Nil value, the TTreeNodeClass class reference is used to create the tree node in the return value.


Version 3.2 Generated 2024-02-25 Home