mouseWheel and zoom

Discussions about document viewing.
Post Reply
gesteam
Posts: 8
Joined: Mon Mar 02, 2009 3:57 pm

mouseWheel and zoom

Post by gesteam » Wed Mar 04, 2009 3:43 pm

Hi,

I see some people have had issue with mousewheel zoom.
I think i find a way to reproduce the issue.
The mouseWheel is out if you open picture as the viewer is in "fit to window" mode !

If you do that :

Code: Select all

oGDViewer.EnableMouseWheel = True		
oGDViewer.MouseWheelMode = 0
oGDViewer.ZoomMode = 2	
oGdViewer.DisplayFromFile(pfilePath)
mousewheel do nothing
If after that you call oGdViewer.SetZoom100, then mouseWheel run again
Then if you stop zooming just as fit to window, or call SetZoomFitControl, close the file, open it again, mouseWheel is out again.

So i think the mouseWheel do nothing only when a new picture is opened when the current zooming state of viewer is "fit to window"

The turnover is evident :

oGdViewer.SetZoom100()
oGdViewer.DisplayFromFile(pfilePath)
oGdViewer.SetZoomFitControl() ' mouseWheel zoom is always ok

Hope it helps,
Best regards,

Thierry Hauchard
Gesteam

Squale
Posts: 1
Joined: Wed Jun 24, 2009 2:37 pm

Re: mouseWheel and zoom

Post by Squale » Wed Jun 24, 2009 3:49 pm

Hi,

I cannot reproduce this twice, but I use to have trouble with the mousewheel zoom on PDF or image with gdviewer activex integrated in VB6 form.
I have try exactly same code as Gesteam's one and from time to time, when we zoom out to the limit of ".zoom" property (arround 0.1), mousewheel do not respond any more.

Is someone have any experience with same trouble?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: mouseWheel and zoom

Post by Loïc » Thu Jun 25, 2009 10:30 am

Hi,

You should decrease the ZoomStep prroperty value (default is 10) to be able to get a lower zoom using mouse-wheel.

IE:

Code: Select all

 GdViewer.ZoomStep = 5
Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests