Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowchartLayout not working (Read 1469 times)
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
FlowchartLayout not working
Jul 2nd, 2009 at 10:00am
Print Post  
I have this code


   Dim layout As New FlowchartLayout()
                   layout.Orientation = MindFusion.Diagramming.Layout.Orientation.Vertical
                   layout.IgnoreRepeatingLinks = True
                   layout.Arrange(Me.MainDiagram)
                   MainDiagram.ResizeToFitItems(10, False)


but when I run the app diagram will not change

is there any property I set let it not working?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowchartLayout not working
Reply #1 - Jul 2nd, 2009 at 12:11pm
Print Post  
FlowchartLayout.Arrange might return false if it cannot find any start node - one without incoming links. If that's the case, you might add a temporary start node and remove it after the layout. Additionally, it expects there is a directed path to each node in the flowchart from some start node.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: FlowchartLayout not working
Reply #2 - Jul 2nd, 2009 at 9:20pm
Print Post  
Thanks
I realize the problem

My node class, I set the property
Ignorelayout to true for all noes while creating

I remove this lin now it works greate

Thanks for help again
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint