Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to move a link entirely (Read 1935 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
How to move a link entirely
Jul 28th, 2012 at 4:33pm
Print Post  
In my sequence diagram, I draw a new message between two life lines of entity.
Actually the message is a instance of class DiagramLink. Now I want to move the
message in the way below:

1. Only can move message up or down.
2. Click the message then press left button of mouse, then drag.
At this time, all points of message can be moved by mouse.

Thanks a lot
  
Back to top
 
IP Logged
 
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Re: How to move a link entirely
Reply #1 - Jul 30th, 2012 at 2:23am
Print Post  
?????
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to move a link entirely
Reply #2 - Jul 30th, 2012 at 12:41pm
Print Post  
The sample code here moves all links together with a node from the NodeModifying event handler:
http://mindfusion.eu/Forum/YaBB.pl?num=1328615880/1#1

You can modify it to offset a single link from the LinkModifying handler. Setting dx = 0 will move the link only vertically.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Re: How to move a link entirely
Reply #3 - Jul 30th, 2012 at 7:05pm
Print Post  
Thanks Stoyo. Your reply gave me an idea. But it can not work 100% perfectly. I hope your product can support this feature in next version. I choose my own way to achieve this feature. So far it can work well.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint