473,218 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,218 software developers and data experts.

Mouse wheel

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 the wheel in the frm.MouseDown, but it
didn't detect it.

Thank for the help.
Nov 20 '05 #1
13 2757
"Nathan" <nk*********************@softhome.net> schrieb

Can someone lead me to info on detecting and using the mouse button?
I guess, you mean the mouse wheel, not mouse button?
All I can find in the MSDN docs is that you use e.Delta, but it
doesn't explain in how.
e.delta returns the amount the wheel has been turned. You get 'e' in
OnMouseWheel or the MouseWheel event.
I tried detecting the roll of the wheel in
the frm.MouseDown, but it didn't detect it.


Mousedown is raised when a mouse button gets pressed, not when the wheel has
been turned.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Ok, maybe it's because it's too early in the morning, or maybe it's because
VS 2002 doesn't have a MouseWheel event, but I can't find it anywhere. I've
even searched for MouseWheel and OnMouseWheel in the help and came up with
nothing.
"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"Nathan" <nk*********************@softhome.net> schrieb

Can someone lead me to info on detecting and using the mouse button?
I guess, you mean the mouse wheel, not mouse button?
All I can find in the MSDN docs is that you use e.Delta, but it
doesn't explain in how.


e.delta returns the amount the wheel has been turned. You get 'e' in
OnMouseWheel or the MouseWheel event.
I tried detecting the roll of the wheel in
the frm.MouseDown, but it didn't detect it.


Mousedown is raised when a mouse button gets pressed, not when the wheel

has been turned.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Cor
Hi Nathan,

http://msdn.microsoft.com/library/de...wheeltopic.asp

I hope this helps?

Cor
Ok, maybe it's because it's too early in the morning, or maybe it's because VS 2002 doesn't have a MouseWheel event, but I can't find it anywhere. I've even searched for MouseWheel and OnMouseWheel in the help and came up with
nothing.

Nov 20 '05 #4
* "Nathan" <nk*********************@softhome.net> scripsit:
Ok, maybe it's because it's too early in the morning, or maybe it's because
VS 2002 doesn't have a MouseWheel event, but I can't find it anywhere. I've
even searched for MouseWheel and OnMouseWheel in the help and came up with
nothing.


Mhm... I can see it inside the IDE and the documentation and I remember
I used it with VS.NET 2002 too. Are you sure advanced members are
shown?

<http://www.google.de/groups?selm=usSXSNgzDHA.3216%40TK2MSFTNGP11.phx.gb l>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
"Nathan" <nk*********************@softhome.net> schrieb
Ok, maybe it's because it's too early in the morning, or maybe it's
because VS 2002 doesn't have a MouseWheel event, but I can't find it
anywhere. I've even searched for MouseWheel and OnMouseWheel in the
help and came up with nothing.


Right, in VB 2002 a Form doesn't have a mousewheel event, but you can
override OnMouseWheel. Override means in a derived class.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
I found it. I was looking for MouseWheel by selecting Base Class Events in
the top left drop-down box, then looking for MouseWheel in the other. But I
typed out the event handler and it was there; now I have it working. Thanks
for the help.

Nathan
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bu************@ID-208219.news.uni-berlin.de...
* "Nathan" <nk*********************@softhome.net> scripsit:
Ok, maybe it's because it's too early in the morning, or maybe it's because VS 2002 doesn't have a MouseWheel event, but I can't find it anywhere. I've even searched for MouseWheel and OnMouseWheel in the help and came up with nothing.


Mhm... I can see it inside the IDE and the documentation and I remember
I used it with VS.NET 2002 too. Are you sure advanced members are
shown?

<http://www.google.de/groups?selm=usSXSNgzDHA.3216%40TK2MSFTNGP11.phx.gb l>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #7
My mouse wheel does not work in VB6 Pro Edit Window, it works every where else, anyone know why?
Nov 20 '05 #8
My mouse wheel does not work in VB6 Pro Edit Window, it works every where else, anyone know why?
Nov 20 '05 #9
There is a fix for the mouse wheel problem in VB6 at :- http://www.joebott.com/vb6scrollwheel.htm
Nov 20 '05 #10
There is a fix for the mouse wheel problem in VB6 at :- http://www.joebott.com/vb6scrollwheel.htm
Nov 20 '05 #11
My mouse wheel does not work in VB6 Pro Edit Window, it works every where else, anyone know why?
Nov 20 '05 #12
There is a fix for the mouse wheel problem in VB6 at :- http://www.joebott.com/vb6scrollwheel.htm
Nov 20 '05 #13
There is a fix for the mouse wheel problem in VB6 at :- http://www.joebott.com/vb6scrollwheel.htm
Nov 20 '05 #14

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...
1
by: jv | last post by:
I have quite a few of continuous form and subform where I do allow scroll bars. I run into problems with the mouse wheel whenever the data on the form does not take up the whole page. In this...
6
by: Susan Bricker | last post by:
Hi. Does anyone have a clue why my mouse wheel stopped working while I was working on the VB behind a form in MS/Access? I would swear that the mouse wheel was working a short time ago. I've...
13
by: James Bond | last post by:
Hello. My 80+ year old father has recently decided to get his first computer. Due to his age (and I suspect lack of playing pong as a child like I did) he lacks the manual dexterity to use a mouse...
4
by: ML | last post by:
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...
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...
3
by: killbill123 | last post by:
Hi, I want to count the mouse wheel rotations in javascript. I searched on google and only found that how to track delta -1 and +1 base on the up mouse wheel and down mouse wheel. I want how...
3
by: West55 | last post by:
I have an Access 2003 database I developed for one of my departments. I have been using Stephen Lebans' MouseWheelOnOff system to turn off the Mouse Wheel without any issues since I developed the...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

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.