Author Topic: System Map Double-click Zoom  (Read 1365 times)

0 Members and 1 Guest are viewing this topic.

Offline Steve Walmsley (OP)

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 11675
  • Thanked: 20461 times
System Map Double-click Zoom
« 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
 

Offline waresky

  • Registered
  • Vice Admiral
  • **********
  • Posts: 1486
  • Thanked: 8 times
  • Alpine Mountaineer..ohh Yeah!
Re: System Map Double-click Zoom
« Reply #1 on: January 07, 2010, 08:51:31 AM »
Welcome!
Nice shorteasylife way:)
 

Offline Erik L

  • Administrator
  • Admiral of the Fleet
  • *****
  • Posts: 5657
  • Thanked: 372 times
  • Forum Admin
  • Discord Username: icehawke
  • 2020 Supporter 2020 Supporter : Donate for 2020
    2022 Supporter 2022 Supporter : Donate for 2022
    Gold Supporter Gold Supporter : Support the forums with a Gold subscription
    2021 Supporter 2021 Supporter : Donate for 2021
Re: System Map Double-click Zoom
« Reply #2 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

Offline Steve Walmsley (OP)

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 11675
  • Thanked: 20461 times
Re: System Map Double-click Zoom
« Reply #3 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
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