Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic programmable created links from center (Read 2107 times)
dmz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: May 28th, 2010
programmable created links from center
May 28th, 2010 at 1:41pm
Print Post  
Hi,

When I create links between diagramnodes/shapenodes programmable on load to create a diagram, all links is drawn from the center of the nodes to each other. I would like to draw them from the border like is is being done when created interactively. I would further like to control from which points on the node-borders these are drawn incomming as well as outgoing links. Can anyone tell me how or point me in a right direction with a link that illustrates how to archive this.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: programmable created links from center
Reply #1 - May 28th, 2010 at 1:49pm
Print Post  
Hi,

This would happen if the nodes are initially overlapping. You might set Dynamic = true for the links and they will move to the borders when the nodes are moved later. SnapToNodeBorder should work too.

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


I love YaBB 1G - SP1!

Posts: 10
Joined: May 28th, 2010
Re: programmable created links from center
Reply #2 - May 28th, 2010 at 1:51pm
Print Post  
Thank you very much for the very quick reply. Smiley

Super.. Smiley 

  
Back to top
 
IP Logged
 
dmz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: May 28th, 2010
Re: programmable created links from center
Reply #3 - May 28th, 2010 at 1:58pm
Print Post  
Can you tell me to create points on the nodes where incomming and outgoing links are alowed?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: programmable created links from center
Reply #4 - May 28th, 2010 at 2:05pm
Print Post  
Set the AnchorPattern property, e.g. check the Anchors sample project. You might also want to set the SnapToAnchor property to OnCreateOrModify, otherwise by default anchor points are used only during link creation.

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


I love YaBB 1G - SP1!

Posts: 10
Joined: May 28th, 2010
Re: programmable created links from center
Reply #5 - May 29th, 2010 at 8:40am
Print Post  
Very nice.. Thank you, it works perfectly..  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint