Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Disable Creating new nodes on mousdown (Read 2201 times)
Freizeitsoldat
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: May 10th, 2009
Disable Creating new nodes on mousdown
May 31st, 2010 at 1:10pm
Print Post  
Hi Stoyo,

if i click in my diagram and move my mouse while pressing the left mouse button a diagram node is created.

I would like to disable this function. (So only a double click will create a new node) Is there an easy posibility to do that?

Thank you,
Alex
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Disable Creating new nodes on mousdown
Reply #1 - May 31st, 2010 at 1:37pm
Print Post  
Hi,

Call view.setBehavior(Behavior.DrawLinks).

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


I love YaBB 1G - SP1!

Posts: 19
Joined: May 10th, 2009
Re: Disable Creating new nodes on mousdown
Reply #2 - May 31st, 2010 at 1:43pm
Print Post  
I got it myself,

i just added an NodeCreating Handler and used event.CancelDrag();

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