Aurora 4x

VB6 Aurora => VB6 Mechanics => Topic started by: Steve Walmsley on January 07, 2010, 04:59:23 AM

Title: System Map Double-click Zoom
Post 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
Title: Re: System Map Double-click Zoom
Post by: waresky on January 07, 2010, 08:51:31 AM
Welcome!
Nice shorteasylife way:)
Title: Re: System Map Double-click Zoom
Post by: Erik L on January 07, 2010, 02:30:16 PM
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)
Title: Re: System Map Double-click Zoom
Post by: Steve Walmsley on January 08, 2010, 04:19:49 PM
Quote from: "Erik Luken"
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