Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Stop mouse event on canvas (Read 3952 times)
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Stop mouse event on canvas
Aug 27th, 2019 at 4:21am
Print Post  
Hi, Please help me to stop any mouse event on canvas after my diagram is loaded.
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Stop mouse event on canvas
Reply #1 - Aug 27th, 2019 at 4:53am
Print Post  
Hi,

Set DiagramView.Behavior = DoNothing;

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: Stop mouse event on canvas
Reply #2 - Aug 27th, 2019 at 5:01am
Print Post  
I tried this but unfortunately it is not working. Can you please elaborate  it
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Stop mouse event on canvas
Reply #3 - Aug 27th, 2019 at 5:07am
Print Post  
If you are loading diagrams on client side, call diagram.setBehavior(MindFusion.Diagramming.Behavior.DoNothing); Make sure that comes after loading the diagram file, or the Behavior value could be replaced by older saved one.
  
Back to top
 
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: Stop mouse event on canvas
Reply #4 - Aug 27th, 2019 at 5:07am
Print Post  
please tell me what variable is DiagramView
  
Back to top
AIM  
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: Stop mouse event on canvas
Reply #5 - Aug 27th, 2019 at 5:14am
Print Post  
Worked for me thanks a lot
  
Back to top
AIM  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint