Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic link coordinates (Read 1739 times)
zoozoo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Jun 24th, 2009
link coordinates
Jun 29th, 2009 at 7:48am
Print Post  
Hi..

when i change the size of my user control , the links in diagram do not change accordingly to start from the new center ( coordinated ) of the control.

Is there any way we can make it relative to the control nodes size ...

thanks in advance.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: link coordinates
Reply #1 - Jun 29th, 2009 at 10:31am
Print Post  
Hi,

Are setting the Width and Height of the hosted control? Try setting the ControlNode.Bounds instead; this should update the link positions and also set the control's size.

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


I love YaBB 1G - SP1!

Posts: 20
Joined: Jun 24th, 2009
Re: link coordinates
Reply #2 - Jun 30th, 2009 at 3:30am
Print Post  
thsnks.
Setting controlnode bounds and the link startpoint/endpoint worked.

newnode.Bounds = new Rect(0, 0, 150, 85);
link.StartPoint = diagram.Nodes[i / 3].GetCenter();
link.EndPoint = diagram.Nodes[i].GetCenter();

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