Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Treeview translation to FlowchartX (Read 3149 times)
xKalibur_GT
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: May 18th, 2006
Treeview translation to FlowchartX
May 18th, 2006 at 11:51am
Print Post  
Hi Guys,
I'm a newbie in FlowchartX. I need to create a representation of my (Task) TreeView control (VB.NET) to  FlowchartX automatically update the FlowchartX component when you add or delete a node in the treeview control (VB.NET).  ???

Thanks in advanced.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Treeview translation to FlowchartX
Reply #1 - May 18th, 2006 at 3:16pm
Print Post  
Hi,

You might use the box.Tag property to associate TreeView item indices with FlowChartX nodes. When a child TreeView item is added, find the box corresponding to its parent in the TreeView using FindBox, create a new box and an arrow connecting the boxes. When a TreeView item is deleted, find the corresponding box and delete it - that will automatically delete the arrow. Finally apply TreeLayout to rearrange the flowchart item. You might also take a look at the DirTree example which shows how to build a tree in FlowChartX programmatically.

Stoyan
  
Back to top
 
IP Logged
 
xKalibur_GT
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: May 18th, 2006
Re: Treeview translation to FlowchartX
Reply #2 - May 18th, 2006 at 3:22pm
Print Post  
Thanks Toyo, do you have any sample source code (VB.NET) that I can make as reference?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Treeview translation to FlowchartX
Reply #3 - May 18th, 2006 at 3:28pm
Print Post  
The FlowChart.NET control comes with a VB.NET version of the DirTree example. You can get it from

https://mindfusion.eu/FCNetDemo.zip

There are some minor differences in the APIs between FlowChartX and FlowChart.NET, but it should still look very similar when you use FlowChartX through the .NET COM interop.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint