TRzTreeView

Components on the Raize Panels palette: panels, group bars, page controls, splitters, toolbars, status bars, group boxes, etc.

TRzTreeView

Postby navaro_81 » Mon May 30, 2011 4:39 am

Hi,

I want to add new tree node to current selected node dynamicly.
navaro_81
 
Posts: 1
Joined:
Mon May 30, 2011 4:32 am

Re: TRzTreeView

Postby Raize Support » Fri Jun 03, 2011 5:39 pm

Hi,

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
var
  RootNode, ChildNode: TTreeNode;
begin
  RootNode := RzTreeView1.Items.Add( nil, 'Root Node' );
  RootNode.ImageIndex := 0;

  ChildNode := RzTreeView1.Items.AddChild( RootNode, 'Child Node' );
  ChildNode.ImageIndex := 1;
end;


There are other Add* methods available that give you more control over how new nodes are added.

Ray
Raize Software Support
Raize Software
http://www.raize.com
Raize Support
 
Posts: 437
Joined:
Fri Mar 25, 2011 9:04 pm


Return to Panels

Who is online

Users browsing this forum: No registered users and 0 guests