Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Preventing changes on  certain nodes (Read 3045 times)
oOAnriOo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Oct 12th, 2009
Preventing changes on  certain nodes
Dec 2nd, 2009 at 2:07pm
Print Post  
..another one for the community.:

I have some nodes on my drawing that i don't want the user to change. Normally I'd just set .locked=true, but i still need the users to be able to click them and drop items on them.

I use the Diagram.GetNodeAt(position) function to retrieve the node below a drop or click, but that one doesn't work with locked objects.

Is there any other way i can prevent the user from modifying a node?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Preventing changes on  certain nodes
Reply #1 - Dec 2nd, 2009 at 2:21pm
Print Post  
GetNodeAt(point, false, whatever) will return Locked nodes too.

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


I love YaBB 1G - SP1!

Posts: 19
Joined: Oct 12th, 2009
Re: Preventing changes on  certain nodes
Reply #2 - Dec 2nd, 2009 at 2:26pm
Print Post  
Roll Eyes Real coders NEVEr read manuals  Embarrassed

Sorry..  Should've spotted that one..
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Preventing changes on  certain nodes
Reply #3 - Dec 2nd, 2009 at 2:32pm
Print Post  
8)
  
Back to top
 
IP Logged
 
oOAnriOo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Oct 12th, 2009
Re: Preventing changes on  certain nodes
Reply #4 - Dec 3rd, 2009 at 1:57pm
Print Post  
Is there any way to reach the anchorpoints on a locked object? (except programmatically)

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Preventing changes on  certain nodes
Reply #5 - Dec 3rd, 2009 at 2:32pm
Print Post  
Do you mean you need to connect a link to the node? That won't work for locked nodes; instead of the Locked property, you might try setting EnabledHandles = None in such case. This will prevent moving or resizing the node, but allow creating links.
  
Back to top
 
IP Logged
 
oOAnriOo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Oct 12th, 2009
Re: Preventing changes on  certain nodes
Reply #6 - Dec 8th, 2009 at 10:45am
Print Post  
Yep..  Thats it..
Thanks again.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint