Mouse wheel zoom

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

Post Reply
Aaron0
Posts: 3
Joined: Mon Jun 20, 2011 9:15 am

Mouse wheel zoom

Post by Aaron0 » Wed Jun 29, 2011 10:03 am

Hi Alex,

I've create my own Zoom VisualTool which I am using with the AnnotationViewer.

The zoom works similar to the standard except it is relative. eg each time you zoom the image doubles in size.

I'm trying to implement a MouseWheel zoom as well by subscribing to ImageViewer.MouseWheel in the constructor of my zoom tool.

Unfortunatly the event only seem to get raised after the first time you click somewere within the viewer control.

Any ideas how to fix this.

Thanks,

Aaron

Yuri
Posts: 56
Joined: Wed Jul 23, 2008 2:47 pm

Re: Mouse wheel zoom

Post by Yuri » Thu Jun 30, 2011 10:48 am

Hi Aaron,

You should set focus on AnnotainonViewer.

In code after string:

Code: Select all

...
 annotationViewer1.CurrentTool = _customZoom;
 ...
insert the string below:

Code: Select all

 ...
 annotationViewer1.Focus();
 ...
Sincerely, Yuri

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests