Jump to content


MouseWheel in VB6.0


4 replies to this topic

#1 Nautilus

    Senior Member

  • Members
  • PipPipPipPip
  • 326 posts

Posted 26 January 2005 - 01:07 PM

How to track MouseWheel movements in Visual Basic 6.0?
VB cares about standard mouse buttons but provides no mean to react to MouseWhel movements :blink:

Do I have to use the Win32 API (if so, how?) or is there a built-in method in VB?
Please give detailed help, as I have limited VB knowledge :blush:

Thanks in advance.
-Nautilus

(readin' this? perhaps you should get out more -- give it a thought)


#2 Nautilus

    Senior Member

  • Members
  • PipPipPipPip
  • 326 posts

Posted 27 January 2005 - 07:31 PM

21 views, 0 replies?
How can it be nobody knows enough on VB to help me? :)
Never mind, problem is solved.

Thanks anyway.
Regards.
-Nautilus

(readin' this? perhaps you should get out more -- give it a thought)


#3 Ed Mack

    Senior Member

  • Members
  • PipPipPipPip
  • 1239 posts

Posted 27 January 2005 - 08:34 PM

Sorry, unfortunately not many VB programmers are residents here.

#4 Dia

    DevMaster Staff

  • Administrators
  • 1097 posts

Posted 27 January 2005 - 11:02 PM

This might help you:

http://www.andreavb.com/tip060008.html

#5 Nautilus

    Senior Member

  • Members
  • PipPipPipPip
  • 326 posts

Posted 28 January 2005 - 09:49 PM

Ed Mack said:

Sorry, unfortunately not many VB programmers are residents here.

View Post

I understand, don't worry. VB is really limited... I too prefer C/C++.

Problem was, my Boss wanted a utility to show certain data using a 3D graphic.
Not too complicated.
But he wanted me to use VB (ouch), and also asked for a zoom-Like feature bound to the mousewheel :dry: (gosh! why ME?)

I just couldn't tell him using VB for the task was insane :blush:
Especially since he like it so much (Boss, grow up: VB is a toy...)

So, shortly after posting here, I found a VB6.0 crash course and learned how to call Win32API.

The rest was piece of cake:
1) subclass form's window procedure
2) intercept WM_MOUSEWHEEL messages (which VB seem to purposedly ignore... why I wonder!?).

Best regards,
Ciao :)
-Nautilus

(readin' this? perhaps you should get out more -- give it a thought)






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users