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)
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