Loading...

mouseWheel and zoom

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

mouseWheel and zoom

Postby 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
gesteam
 
Posts: 3
Joined: Mon Mar 02, 2009 3:57 pm

Re: mouseWheel and zoom

Postby 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?
Squale
 
Posts: 1
Joined: Wed Jun 24, 2009 2:37 pm

Re: mouseWheel and zoom

Postby 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
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest