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

TTreeNodes.AddChildObject

Adds a child node with specified text and data to the parent node and returns the new node.

Declaration

Source position: comctrls.pp line 3231

public function TTreeNodes.AddChildObject(

  ParentNode: TTreeNode;

  const S: string;

  Data: Pointer

):TTreeNode;

Arguments

ParentNode

  

Node which is the parent for the new child node.

S

  

Text for the child node created in the method.

Data

  

Pointer to the data for the node created in the method.

Function result

TTreeNode instance created in the method.

See also

TTreeNodes.InternalAddObject

  

Creates or updates a tree node with the specified text and a pointer to data.


Version 3.2 Generated 2024-02-25 Home