|
TBaseVirtualTree.AddChild Method
Creates and adds a new child node to given node.
Pascal
function AddChild(Parent: PVirtualNode; UserData: Pointer = nil): PVirtualNode;
Description
The new node will be created as last child of Parent and is returned as result.
Notes
Using AddChild is not recommended. The method is merely there for easier migration from TTreeview. The reason is that the
method has to validate the node and does some other processing, which prevents the tree from utilizings its virtual
paradigm. Important advantages will so disappear. If possible you should restructure your design and try to use the right
way: via OnInitNode and OnInitChildren.
See Also
Class
Links
What do you think about this topic? Send feedback!
|