By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,825 Members | 1,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,825 IT Pros & Developers. It's quick & easy.

Mouse Wheel Event Issue

P: n/a
ML
I am trying to use the mouse wheel event on a numeric input box to allow the
use to scroll to inc/dec the value by 1. The issue I am having is that the
delta value returned seems to be off. From my understanding the delta is
the number of detents the mouse has moved. The standard detent is
supposedly 120 for one notch of the wheel, however when I turn the wheel 1
click I get 240. Is there someway to determine the actual detent setting so
that I can in turn set the code to handle one wheel turn notch as a value of
1?
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
ML
It seems my mouse is actually firing the wheel event twice for a single
detent.
Is this controlled by the user's mouse settings and if so is there anyway to
override this in an app to ensure it only fires once?

"ML" <ml@schoonersolutions.com> wrote in message
news:u1**************@TK2MSFTNGP09.phx.gbl...
I am trying to use the mouse wheel event on a numeric input box to allow
the use to scroll to inc/dec the value by 1. The issue I am having is that
the delta value returned seems to be off. From my understanding the delta
is the number of detents the mouse has moved. The standard detent is
supposedly 120 for one notch of the wheel, however when I turn the wheel 1
click I get 240. Is there someway to determine the actual detent setting
so that I can in turn set the code to handle one wheel turn notch as a
value of 1?

Nov 21 '05 #2

P: n/a
Hi

In the Control Panel/ Mouse utility, there is tab about wheel which will
change the behavior of mouse.
This may vary depend on what mouse, you are using, also I think this will
heavily depend on the mouse driver usually developped by the mouse
manufacture.

I think you may try to contact your mouse manufacture for consulting the
behavior about the driver shipped with the mouse.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #3

P: n/a
ML
This is with a MS Optical Intellimouse. I tried changing the settings in
the control panel but had no effect. One detent on the wheel always seems
to fire the mouse wheel event twice.

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:eE**************@cpmsftngxa10.phx.gbl...
Hi

In the Control Panel/ Mouse utility, there is tab about wheel which will
change the behavior of mouse.
This may vary depend on what mouse, you are using, also I think this will
heavily depend on the mouse driver usually developped by the mouse
manufacture.

I think you may try to contact your mouse manufacture for consulting the
behavior about the driver shipped with the mouse.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 21 '05 #4

P: n/a
Hi,

From you description, I assume you monitor the mouse_wheel event in the
spyxx tool.
Based on my test with the windows explorer, one delta will fire one
mouse_wheel message. But there may be other possibility may change the
behavior.
e.g. mouse driver, mouse utility or you test on a specified program.
Have you installed any mouse utility tool?e.g. Logitech or else.

To isolate the problem, I think we may try to plug the mouse into another
fresh installed machine to see if the problem persists.(Please tested on
windows explorer).
If yes, I think most possibility is that there is something with the
mouseself, you may try to contact your mouse vendor to change a new one.

If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.