Aurora 4x
VB6 Aurora => VB6 Mechanics => Topic started by: Steve Walmsley on January 07, 2010, 04:59:23 AM
-
Someone mentioned somewhere about using the mouse wheel to zoom the system map. Unfortunately VB6 doesn't support the mouse wheel event. Problems of an archaic language
. I have looked at sub-classing and intercepting the windows message queue but haven't got it work so far. Instead, I have added some code to v4.8 so that double left click will zoom in and double right-click will zoom out. You can already centre the map by clicking on a system body or fleet in v4.77. In v4.8 you will be able to centre on empty space using shift-double-click (this won't zoom).
Steve
-
Welcome!
Nice shorteasylife way:)
-
It's been a while since I used VB6, but the code on this link seems to accomplish using the mousewheel.
http://www.adit.co.uk/html/mousewheelsupport.html (http://www.adit.co.uk/html/mousewheelsupport.html)
-
It's been a while since I used VB6, but the code on this link seems to accomplish using the mousewheel.
http://www.adit.co.uk/html/mousewheelsupport.html (http://www.adit.co.uk/html/mousewheelsupport.html)
I tried that exact page before I went for the double-click option. I assume I was doing something wrong but it kept crashing the program and I couldn't figure out why.
Steve