VintaSoft Annotation .NET Plug-in Discussions

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

Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Mouse wheel zoom



Mouse wheel zoom

Post by Aaron0 »

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


Re: Mouse wheel zoom

Post by Yuri »

Hi Aaron,

You should set focus on AnnotainonViewer.

In code after string:
...
 annotationViewer1.CurrentTool = _customZoom;
 ...
insert the string below:
 ...
 annotationViewer1.Focus();
 ...
Sincerely, Yuri


Page 1 from 1: 1