Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse wheel operation not supported in diagramView? (Read 1906 times)
Kyle Chen
Full Member
***
Offline


I Love MindFusion!

Posts: 104
Joined: Nov 29th, 2012
Mouse wheel operation not supported in diagramView?
Nov 29th, 2012 at 10:55pm
Print Post  
Is there any way to enable mouse wheel operation in winform diagram view? Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mouse wheel operation not supported in diagramView?
Reply #1 - Nov 30th, 2012 at 6:12am
Print Post  
DiagramView inherits a MouseWheel event from the base Control class, but Microsoft have marked it as non-browsable, so you can't attach a handler from the form editor:

[Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)]
public event MouseEventHandler MouseWheel

Instead, add a handler from code:

Code
Select All
diagramView.MouseWheel += OnMouseWheel;

private void OnMouseWheel(object sender, MouseEventArgs e)
{
    ...
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Kyle Chen
Full Member
***
Offline


I Love MindFusion!

Posts: 104
Joined: Nov 29th, 2012
Re: Mouse wheel operation not supported in diagramView?
Reply #2 - Nov 30th, 2012 at 3:07pm
Print Post  
Yep, I figured it out after post. Thank you!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint