Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Prevent routing from changeing arrow anchor (Read 4298 times)
darylp
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Oct 25th, 2006
Prevent routing from changeing arrow anchor
Mar 15th, 2007 at 10:45am
Print Post  
Is it possible to prevent the auto routing to not move the orgin or destination anchor of the arrow. It is vital that the arrows stay at the anchor points that the user set.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Prevent routing from changeing arrow anchor
Reply #1 - Mar 15th, 2007 at 11:42am
Print Post  
Setting FlowChart.RoutingOptions.Anchoring = Keep should do that.

Stoyan
  
Back to top
 
IP Logged
 
Daniel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jun 14th, 2007
Re: Prevent routing from changeing arrow anchor
Reply #2 - Jun 14th, 2007 at 9:22am
Print Post  
I have the same problem with tables and your solution does not do it.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Prevent routing from changeing arrow anchor
Reply #3 - Jun 14th, 2007 at 10:13am
Print Post  
Could you post here the table property values and AnchorPattern definition?

Stoyan
  
Back to top
 
IP Logged
 
Daniel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jun 14th, 2007
Re: Prevent routing from changeing arrow anchor
Reply #4 - Jun 14th, 2007 at 11:03am
Print Post  
Hmm. Strange. With

flowChart.RoutingOptions.Anchoring = Anchoring.Reassign

it works???, although the arrows are rerouted a little bit strange. They go straight down (or up)  from the anchor point for a short distance and then away from the table (only some do that).

Anyway, I'm not sure what you need, so here's what I set specifically:

table.ColumnCount = 3;
table.Scrollable = false;
table.EnabledHandles = Handles.Move;
table.CellFrameStyle = CellFrameStyle.None;
table.HandlesStyle = HandlesStyle.MoveOnly;

table.Columns[0].Width = 4;
table.Columns[1].Width = 22;
table.Columns[2].Width = 4;

table.RowCount = 3;
table[0, 0].RowSpan = 3;
table[1, 0].RowSpan = 3;

table.Rows[0].Height = 6;
table.Rows[1].Height = 6;
table.Rows[2].Height = 6;

table.Rows[0].AnchorPattern = new AnchorPattern(new AnchorPoint[]
                       {
                           new AnchorPoint(0, 50, true, false, Color.Black, 0),
                           new AnchorPoint(100, 50, false,true, Color.Green, 2)
                       });

table.Rows[0].AnchorPattern.Points[0].MarkStyle = MarkStyle.Circle;
table.Rows[0].AnchorPattern.Points[1].MarkStyle = MarkStyle.Circle;

table.Rows[1].AnchorPattern = new AnchorPattern(new AnchorPoint[]
                       {
                           new AnchorPoint(100, 50, false, true, Color.Blue, 2)
                       });

table.Rows[1].AnchorPattern.Points[0].MarkStyle = MarkStyle.Circle;

table.Rows[2].AnchorPattern = new AnchorPattern(new AnchorPoint[]
                       {
                           new AnchorPoint(100, 50, false, true, Color.Red, 2)
                       });

table.Rows[2].AnchorPattern.Points[0].MarkStyle = MarkStyle.Circle;

I'm also using a custom behavior, I took from another thread here, that you answered.

http://mindfusion.org/cgi/Forum/YaBB.pl?board=fcnet_disc;action=display;num=1153...

I also have a completly different problem. Nice shadows and emboss from EffectsProvider work fine with Boxes, but not with Tables. Is this on purpose?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Prevent routing from changeing arrow anchor
Reply #5 - Jun 14th, 2007 at 12:00pm
Print Post  
Unfortunately those effects are available only for boxes at this time.

What TableLinkStyle are you using?

Stoyan
  
Back to top
 
IP Logged
 
Daniel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jun 14th, 2007
Re: Prevent routing from changeing arrow anchor
Reply #6 - Jun 14th, 2007 at 12:58pm
Print Post  
It's the default value

FlowChart.TableLinkstyle = Rows

This is what it looks like:

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Prevent routing from changeing arrow anchor
Reply #7 - Jun 14th, 2007 at 1:11pm
Print Post  
I have tried this using the FCDemo \ ERD sample and could not see any problems. Could you email me a saved diagram file with several tables?

Stoyan
« Last Edit: Jun 14th, 2007 at 5:24pm by Stoyo »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Prevent routing from changeing arrow anchor
Reply #8 - Jun 15th, 2007 at 4:52am
Print Post  
I've loaded the file you have emailed me into the FCDemo, and used the Route All Arrows command from the menu. The result looks OK to me -



so, try using the same RoutingOptions values as the ones from the FCDemo property grid.

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