Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrows with tables as destination (Read 2183 times)
Kurt
YaBB Newbies
*
Offline


48°32'N 8°1'E

Posts: 10
Location: Germany
Joined: Oct 24th, 2005
Arrows with tables as destination
May 29th, 2006 at 12:00pm
Print Post  
I want to draw arrows, which have a table as destination. The arrows shall link to the table as whole entity, so I use the CreateArrow method with -1 as row argument. This works fine, if the table has no AnchorPoint, which allows incoming arrows.
If there is such an AnchorPoint, the arrow allways ends in this AnchorPoint.
What can I do, that the arrow ends somewhere at the edge of the table, when this table has an AchorPoint?
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrows with tables as destination
Reply #1 - May 29th, 2006 at 12:27pm
Print Post  
You could disable the AnchorPattern temporarily, e.g.

AnchorPattern ap = table.AnchorPattern;
table.AnchorPattern = null;
fc.CreateArrow(table, ...);
table.AnchorPattern = ap;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrows with tables as destination
Reply #2 - May 29th, 2006 at 12:28pm
Print Post  
... or handle the ValidateAnchorPoint event and return false for all points.
  
Back to top
 
IP Logged
 
Kurt
YaBB Newbies
*
Offline


48°32'N 8°1'E

Posts: 10
Location: Germany
Joined: Oct 24th, 2005
Re: Arrows with tables as destination
Reply #3 - May 30th, 2006 at 5:37am
Print Post  
Hi Stoyo,

thank for your answers.

The first solution works, but when a table is moved, the array jumps back to the anchnr point, probably because I call a FC.RouteAllArrows().

The seconds solution with the ValidateAnchorPoint-Event works without problems.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint