Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Preventing Right Mousebutton drawing blue square (Read 1697 times)
Dominic Hoffmann
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Mar 19th, 2013
Preventing Right Mousebutton drawing blue square
Mar 21st, 2013 at 2:59pm
Print Post  
Hi,

how can i prevent the right mouse button from drawing a blue square / selection rectangle after it got pressed and kept holding down?

I am displaying a contextmenu on right mouse button click.
And after the contextmenu is disappearing, user selected one of the options, i always have a blue square following the mouse cursor.

I think it should be the diagram.behaviour property?
But which options do i need to set?
I want the user to not manuelly add squares, but drawing links. Square will get added programmatically.

thanks,
Dominic.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Preventing Right Mousebutton drawing blue square
Reply #1 - Mar 21st, 2013 at 3:15pm
Print Post  
Hi,

Call CancelDrag before showing the context menu. Set Behavior = DrawLinks to prevent drawing new nodes altogether, but allow drawing links between existing ones.

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


I Love MindFusion!

Posts: 18
Joined: Mar 19th, 2013
Re: Preventing Right Mousebutton drawing blue square
Reply #2 - Mar 21st, 2013 at 3:31pm
Print Post  
Thanks.Its working like it's supposed to.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint