Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How do create a Tree programatically? (Read 1053 times)
pocooh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Jun 15th, 2009
How do create a Tree programatically?
Jun 15th, 2009 at 2:46am
Print Post  

Hello,

I have a .NET TreeView in my application, and I want to visualize this tree graphically in the FlowChart control. But I'm kinda lost and in a hurry.

I've seen some people talking about the TreeLayout, but I was not able to use it as I had to specify the root note, which seemed fine, but I had to add all its nodes (simple shape nodes would suit my needs) specifying their positions on the diagram. I don't want that, I just want to supply the nodes (in a tree hierarchy) and have the control to draw everything automatically for me. I guess I'm missing something, it shouldn't be that difficult I think.

What's the best approach to my case?

Thanks for the attention, have a great day.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How do create a Tree programatically?
Reply #1 - Jun 15th, 2009 at 6:42am
Print Post  
Hi,

You can specify some arbitrary positions for the nodes when adding them, and leave it to TreeLayout to arrange them later. Check the DirTree and TreeLayout examples; the former builds the tree programmatically, the latter lets the user add nodes and applies TreeLayout on them. These examples are available both in C# and VB.NET, in subfolders under the control installation folder.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint