Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic shape & tablenode attachnode anneallayout prob (Read 1794 times)
BidMaestro
Junior Member
**
Offline


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
shape & tablenode attachnode anneallayout prob
May 10th, 2008 at 4:07am
Print Post  
Hi Guys

I am having a small problem with a tablenode attached to a shapenode. When you the run a layout (AnnealLayout) it separates the attachednode from the shapenode.

If you use your Telephony VB example and add a simple button with teh following code and run it you will see what I mean; select the Input Sequence icon with atached tabel to drop onto the diagram       

Dim layout As MindFusion.Diagramming.Layout.AnnealLayout = New MindFusion.Diagramming.Layout.AnnealLayout
       layout.Arrange(view.Diagram)

How can I stop the tablenode from being detached from the shapenode after a layout operation?

regards
Doug

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: shape & tablenode attachnode anneallayout
Reply #1 - May 12th, 2008 at 9:46am
Print Post  
Enable either the table's IgnoreLayout property, or the layout's KeepGroupLayout property. Check the [url=http://mindfusion.eu/onlinehelp/flowchartnet/index.htm?P_MindFusion_Diagramming_Layout_LayeredLayout_KeepGroupLayout_0.htm]KeepGroupLayout[/url] help topic for an explanation what is the difference between the two methods.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
BidMaestro
Junior Member
**
Offline


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
Re: shape & tablenode attachnode anneallayout
Reply #2 - May 12th, 2008 at 10:52am
Print Post  
Stoyan

As always your advice is perfect; the ignorelayout property worked a treat.

The KeepGroupLayout worked better as the tablenode that I attached had quite a few rows and this property kept all the nodes nicely spaced after the layout.

Thank you
Doug
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint