Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DynamicLinks problem (Read 1516 times)
Thomas Nygaard
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 2nd, 2009
DynamicLinks problem
Mar 11th, 2009 at 10:02am
Print Post  
Hi

I have a problem with the DynamicLinks property.

When I move the nodes manually in the diagram it works just fine, but when I move the nodes via the Move method the links aren't arranged correct.

Here is a simple code example.

private void Form1_Load(object sender, EventArgs e)
{
diagram1.DynamicLinks = true;

ShapeNode node1 = diagram1.Factory.CreateShapeNode(10, 10, 10, 10);
ShapeNode node2 = diagram1.Factory.CreateShapeNode(50, 10, 10, 10);

DiagramLink link = diagram1.Factory.CreateDiagramLink(node1, node2);

node1.Move(100, 10);
}

The arrow stays on the left side of node2 instead of being moved to the right side of the node.

Am I missing something?

Thanks

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DynamicLinks problem
Reply #1 - Mar 11th, 2009 at 10:56am
Print Post  
Call link.UpdateIntersections() after moving the node.

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


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 2nd, 2009
Re: DynamicLinks problem
Reply #2 - Mar 11th, 2009 at 11:52am
Print Post  
Yes, it works Smiley

Thanks

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