Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Allow user move link end point? (Read 3641 times)
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Allow user move link end point?
Dec 12th, 2008 at 10:23pm
Print Post  
Hi Stoyo,

I don't want the user to change a link after it is created. So I set the LinkEndsMovable of the Diagram to false.
But I still can move the link segement points.

What is the proper way to do it?

Thanks a lot.
  
Back to top
 
IP Logged
 
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Re: Allow user move link end point?
Reply #1 - Dec 12th, 2008 at 10:52pm
Print Post  
I found that if I set RouteLinks to true, the link segment can be changed.

But I need to set RouteLinks to true to avoid nodes.
Is there a way to disable link modification?

Thanks a lot.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Allow user move link end point?
Reply #2 - Dec 13th, 2008 at 5:54pm
Print Post  
Hi Chris,

Set link.Locked = true.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Re: Allow user move link end point?
Reply #3 - Dec 15th, 2008 at 6:54pm
Print Post  
Thanks a lot!
It works!
  
Back to top
 
IP Logged
 
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Re: Allow user move link end point?
Reply #4 - Dec 18th, 2008 at 11:43pm
Print Post  
A new requirement:

If I set link.Locked = true, I can't select the link.

I don't want to changed the link, but I need to select the link. What should I do?

Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Allow user move link end point?
Reply #5 - Dec 19th, 2008 at 7:46am
Print Post  
You might handle the LinkStartModifying event and set args.Cancel = true.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint