Components on the Raize Panels palette: panels, group bars, page controls, splitters, toolbars, status bars, group boxes, etc.
I want to add new tree node to current selected node dynamicly.
- Posts: 1
Mon May 30, 2011 4:32 am
The TRzTreeView is a descendant of the TTreeView. As a result, the same techniques for adding nodes to a TTreeView will work for a TRzTreeView. The following sample code illustrates a couple different ways of dynamically adding nodes to a tree.
- Code: Select all
RootNode, ChildNode: TTreeNode;
RootNode := RzTreeView1.Items.Add( nil, 'Root Node' );
RootNode.ImageIndex := 0;
ChildNode := RzTreeView1.Items.AddChild( RootNode, 'Child Node' );
ChildNode.ImageIndex := 1;
There are other Add* methods available that give you more control over how new nodes are added.
- Posts: 526
Fri Mar 25, 2011 9:04 pm
Return to Panels
Who is online
Users browsing this forum: No registered users and 1 guest