Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Containernode childs not responding to treelayout (Read 2333 times)
Rick Veens
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Nov 12th, 2012
Containernode childs not responding to treelayout
Nov 12th, 2012 at 1:54pm
Print Post  
Hi im trying to layout a diagram containing containernodes and shapenodes.

When i run the arrange method on the diagram the nodes added to the containernode are node arranged and are put on each other.

The nodes in the containernode should be displayed one at a time vertically.

I also tried using a layout on the nodes contained in the diagramnode but it doesnt seem to be working.

I am using a tree layout.

Thanks in advance!

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Containernode childs not responding to treelayout
Reply #1 - Nov 12th, 2012 at 2:48pm
Print Post  
Hi,

Layout classes do not arrange containers' children. You will have to apply layouts separately on each container; see an example here:
http://mindfusion.eu/Forum/YaBB.pl?num=1273515591/1#1

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Rick Veens
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Nov 12th, 2012
Re: Containernode childs not responding to treelayout
Reply #2 - Nov 12th, 2012 at 3:18pm
Print Post  
Hi again,

Unfortunately it doesnt seem to be working.
Code
Select All
            TreeLayout tl = new TreeLayout();
            tl.Direction = TreeLayoutDirection.LeftToRight;
            tl.NodeDistance = 10;
            tl.LinkStyle = TreeLayoutLinkType.Rounded;

            LayeredLayout layeredLayout = new LayeredLayout();
            layeredLayout.Orientation = MindFusion.Diagramming.Layout.Orientation.Horizontal;

            Arrange(diagram, tl, layeredLayout); 



I copied the code on the page you linked and im using the Arrange method with 3 parameters.

Am i using the wrong layouts?
I dont seem to have the TopologicalLayout class.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Containernode childs not responding to treelayout
Reply #3 - Nov 12th, 2012 at 5:09pm
Print Post  
Hi,

What version of the control are you using?

Stoyan
  
Back to top
 
IP Logged
 
Rick Veens
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Nov 12th, 2012
Re: Containernode childs not responding to treelayout
Reply #4 - Nov 13th, 2012 at 8:32am
Print Post  
Thanks for your response!

Stoyo wrote on Nov 12th, 2012 at 5:09pm:
Hi,

What version of the control are you using?

Stoyan

I am using version 1.0.2826.18027.
Also the runtime version is v2.0.50727 according to the properties window.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Containernode childs not responding to treelayout
Reply #5 - Nov 13th, 2012 at 10:44am
Print Post  
I suppose that old version might not support arranging multiple graphs from the layout.Arrange(items) method. Try adding some temporary links between the child nodes to make them a single graph, or loop over the children and set their Bounds to form a column instead of relying on a layout class.

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