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

0 Members and 1 Guest are viewing this topic.

Offline Steve Walmsley (OP)

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 12186
  • Thanked: 23779 times
  • 2025 Supporter 2025 Supporter : Support the forums in 2025
    Gold Supporter Gold Supporter :
    Above & Beyond Supporter Above & Beyond Supporter :
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: 1487
  • Thanked: 9 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: 5688
  • Thanked: 418 times
  • Forum Admin
  • Discord Username: icehawke
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: 12186
  • Thanked: 23779 times
  • 2025 Supporter 2025 Supporter : Support the forums in 2025
    Gold Supporter Gold Supporter :
    Above & Beyond Supporter Above & Beyond Supporter :
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