473,465 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Mouse Wheel Event Issue

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
4 2701
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: AccessWhiz | last post by:
I have been trying desperately for the past few days to figure out why the MouseWheel solution that I retrieved from the Lebans website won't work. The access database included with the solution...
5
by: Bryan Masephol | last post by:
Hi All I got a datagrid and a ComboBox on a form. I populate the combobox with years for all the data avaiable. When the user chooses a year the datagrid is populated with the specific years...
2
by: Anders Eriksson | last post by:
Hello! I have a program with three views ------------------------------------ | | | | 1 | 2 | | | ...
13
by: Nathan | last post by:
Hi, Can someone lead me to info on detecting and using the mouse button? All I can find in the MSDN docs is that you use e.Delta, but it doesn't explain in how. I tried detecting the roll of...
0
by: lechatthierry | last post by:
Is it possible to block a mouse event on an Hyperlink with a general script event? This is quite troublesome for me. I am trying to find a way to block the windows shortcut SHIFT + MOUSE LEFT...
1
by: Neko | last post by:
Is it possible to block a mouse event on an Hyperlink with a general script event? This is quite troublesome for me. I am trying to find a way to block the windows shortcut SHIFT + MOUSE LEFT...
7
by: tommaso.gastaldi | last post by:
This is a curious question. I'd like to know your opinion. I am attaching a drawing resize to a mouse wheel event. Frankly, to me was most natural that, if I mouse wheel UP, the shape gets...
7
by: Martijn Mulder | last post by:
When the mouse is over a picture, the user can grow or shrink it by rolling the central mouse wheel. What behavior is typical when the user rolls the wheel away. Will the picture grow or shrink...
1
by: kallol | last post by:
I have a simple HTML page where I have a form with in a <div style="height: 600px; width: 100%; overflow: auto;">. The mentioned div styles are mandatory to get the expected behavior of the div. ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.