Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse wheel zoom in DiagramView (Read 1963 times)
a.thireau
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Apr 19th, 2011
Mouse wheel zoom in DiagramView
May 16th, 2012 at 3:27pm
Print Post  
Hello,

I'm looking for a simple way to use the mouse wheel to zoom in the DiagramView.

I'm looking for a function like this one :

private void DiagramView_MouseWheel(object sender, MouseEventArgs e)
{
     if (Control.ModifierKeys == Keys.Control)
     {
           if (e.Delta > 0)
           {
                 ZoomIn ...
           }
           else
           {
                 ZoomOut ...
           }
     }
}

And i want the mouse position in the center of the zoom area.

Is there any possibility to do that?

Thanks in adance.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mouse wheel zoom in DiagramView
Reply #1 - May 16th, 2012 at 4:34pm
Print Post  
Hi,

You can find an example here:
http://mindfusion.eu/Forum/YaBB.pl?num=1225423028/2#2

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint