Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic select but no modify (Read 1140 times)
Bjorn
YaBB Newbies
*
Offline


Alfadata Technologies
Corporation

Posts: 33
Location: Alberta
Joined: Aug 14th, 2008
select but no modify
Apr 3rd, 2009 at 9:14pm
Print Post  
Hello,

I am trying to disable modification and moving of links and nodes (while maintaining the ability to select them).

I have been able to individually disable several things (moving links and nodes by cancelling linkstartmodified event, reanchoring through the LinkEndsMovable, but I can't find a way to prevent the user from being able to create control points.  For some reason, this doesn't fire the linkstartmodified event. 

Is there a way to disable the creation of control points, or is there an easier way to make objects selectable but not able to be modified?  I prefer to do this on a global scale, but I can do it on every object individually as well if neccessary.

Thanks in advance for any assistance!
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: select but no modify
Reply #1 - Apr 6th, 2009 at 8:40am
Print Post  
Hi,

You could set Behavior = DoNothing, and select items in response to the NodeClicked and LinkClicked event by calling diagram.Selection.Change(). Otherwise, preventing the user from creating control points can be done by setting AllowSplitLinks = false.

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