Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to disable the function of drawing directly on the canvas(DiagramView)? (Read 2901 times)
Vito Kong
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Dec 11th, 2014
how to disable the function of drawing directly on the canvas(DiagramView)?
Dec 11th, 2014 at 2:25am
Print Post  
Hello .Just like the Title, i want to disable the gestures sliding drawing.But i have no idea what the fuction i should call. Shocked
« Last Edit: Dec 11th, 2014 at 3:48am by Vito Kong »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to disable the function of drawing directly on the canvas(DiagramView)?
Reply #1 - Dec 11th, 2014 at 8:31am
Print Post  
Hi,

Try calling DiagramView.setBehavior with one of the following values, depending on whether you need any other interactions enabled:

Behavior.DoNothing: prevents all interactions, only raises click events
Behavior.Pan: only pans the diagram
Behavior.SelectOnly: lets you select items, but not modify them
Behavior.Modify : lets you select, move and resize

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


I Love MindFusion!

Posts: 2
Joined: Dec 11th, 2014
Re: how to disable the function of drawing directly on the canvas(DiagramView)?
Reply #2 - Dec 11th, 2014 at 8:56am
Print Post  
Cheesy  It works! Thank you indeed.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint