[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Creates or updates a tree node with the specified text and a pointer to data.
Source position: comctrls.pp line 3219
protected function TTreeNodes.InternalAddObject( |
Node: TTreeNode; |
const S: string; |
Data: Pointer; |
AddMode: TAddMode |
):TTreeNode; |
Node |
|
An existing tree node to update, or Nil to create a new tree node. |
S |
|
Text for the tree node. |
Data |
|
Pointer to the data for the tree node. |
AddMode |
|
Position in the tree hierarchy where the node is stored. |
TTreeNode instance created or updated in the method.
Expands the parent for the Node (when assigned). Updates the accessibility role, description, and value when enabled in the tree view which owns the container. Updates the scroll bars for the tree view control prior to exit.
Used in the implementation of methods like: AddNode, AddObject, Insert, AddChildObject, et. al.
Raises an ETreeNodeError exception if the Owner for the container (the tree view control) has not been assigned.
Version 3.2 | Generated 2024-02-25 | Home |