| Author |
Message |
matt_1ca
Guest
|
Posted:
Fri Mar 25, 2005 4:05 am Post subject:
Trapping Wheel Mouse Roll Event -- An Esoteric Question |
|
|
Is there a way for me to trap the event triggered when I roll the wheel of an optical wheel mouse?
Right now I am designing a program that is supposed to perform certain actions when the user rolls
the wheel of his mouse e.g. when zooming in or out of an AutoCAD drawing.
In AutoCAD it does not display anything in the command prompt when user rolls the wheel -- so it
is not actually an ordinary zoom -- it is something else .. zooming that is generated from a rolling
of the wheel is really a strange kind of zoom to me -- that I do not have an idea how to trap,
and yet I have to trap.
All kinds of ordinary zoom require somekind of click or drag using the mouse buttons accompanied
by a movement of the mouse itself -- but a zoom from a wheel of a mouse does not need any movement of the mouse at all -- it does not even require the user to click on any button -- it is
pure rolling of the wheel -- moreover, unlike ordinary zoom which sends something to the command
line (allowing user to simulate or trap it through code) a zooming accomplished by rolling the wheel
does not send anything in the command line at all.
Does anyone have an idea how it can be trapped? Any suggestion welcome.
Matt
|
|
| Back to top |
|
 |
Paul Richardson
Guest
|
Posted:
Fri Mar 25, 2005 5:11 am Post subject:
Re: Trapping Wheel Mouse Roll Event -- An Esoteric Question |
|
|
winAPI...now we're programming..;0
google will give you more than you want. gl
"matt_1ca" <nospam@address.withheld> wrote in message
news:28119333.1111705571291.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | Is there a way for me to trap the event triggered when I roll the wheel of
an optical wheel mouse?
Right now I am designing a program that is supposed to perform certain
actions when the user rolls
the wheel of his mouse e.g. when zooming in or out of an AutoCAD drawing.
In AutoCAD it does not display anything in the command prompt when user
rolls the wheel -- so it
is not actually an ordinary zoom -- it is something else .. zooming that
is generated from a rolling
of the wheel is really a strange kind of zoom to me -- that I do not have
an idea how to trap,
and yet I have to trap.
All kinds of ordinary zoom require somekind of click or drag using the
mouse buttons accompanied
by a movement of the mouse itself -- but a zoom from a wheel of a mouse
does not need any movement of the mouse at all -- it does not even require
the user to click on any button -- it is
pure rolling of the wheel -- moreover, unlike ordinary zoom which sends
something to the command
line (allowing user to simulate or trap it through code) a zooming
accomplished by rolling the wheel
does not send anything in the command line at all.
Does anyone have an idea how it can be trapped? Any suggestion welcome.
Matt |
|
|
| Back to top |
|
 |
Paul Richardson
Guest
|
Posted:
Fri Mar 25, 2005 5:47 am Post subject:
Re: Trapping Wheel Mouse Roll Event -- An Esoteric Question |
|
|
Matt,
I use mouse.cls that came with the
book, VBA Developers Handbook.
Nice way to learn the api functions and
there in a useable class. Might
want to check it out.
gl,
Paul
"Paul Richardson" <prichardson@adelphia.net> wrote in message
news:42435716$1_2@newsprd01...
| Quote: | winAPI...now we're programming..;0
google will give you more than you want. gl
"matt_1ca" <nospam@address.withheld> wrote in message
news:28119333.1111705571291.JavaMail.jive@jiveforum2.autodesk.com...
Is there a way for me to trap the event triggered when I roll the wheel
of an optical wheel mouse?
Right now I am designing a program that is supposed to perform certain
actions when the user rolls
the wheel of his mouse e.g. when zooming in or out of an AutoCAD drawing.
In AutoCAD it does not display anything in the command prompt when user
rolls the wheel -- so it
is not actually an ordinary zoom -- it is something else .. zooming that
is generated from a rolling
of the wheel is really a strange kind of zoom to me -- that I do not
have an idea how to trap,
and yet I have to trap.
All kinds of ordinary zoom require somekind of click or drag using the
mouse buttons accompanied
by a movement of the mouse itself -- but a zoom from a wheel of a mouse
does not need any movement of the mouse at all -- it does not even
require the user to click on any button -- it is
pure rolling of the wheel -- moreover, unlike ordinary zoom which sends
something to the command
line (allowing user to simulate or trap it through code) a zooming
accomplished by rolling the wheel
does not send anything in the command line at all.
Does anyone have an idea how it can be trapped? Any suggestion welcome.
Matt
|
|
|
| Back to top |
|
 |
Paul Richardson
Guest
|
Posted:
Fri Mar 25, 2005 5:56 am Post subject:
Re: Trapping Wheel Mouse Roll Event -- An Esoteric Question |
|
|
| Quote: | there in a useable class. Might
they're....I hate doing that..;-) |
"Paul Richardson" <prichardson@adelphia.net> wrote in message
news:42435fa9_1@newsprd01...
| Quote: | Matt,
I use mouse.cls that came with the
book, VBA Developers Handbook.
Nice way to learn the api functions and
there in a useable class. Might
want to check it out.
gl,
Paul
"Paul Richardson" <prichardson@adelphia.net> wrote in message
news:42435716$1_2@newsprd01...
winAPI...now we're programming..;0
google will give you more than you want. gl
"matt_1ca" <nospam@address.withheld> wrote in message
news:28119333.1111705571291.JavaMail.jive@jiveforum2.autodesk.com...
Is there a way for me to trap the event triggered when I roll the wheel
of an optical wheel mouse?
Right now I am designing a program that is supposed to perform certain
actions when the user rolls
the wheel of his mouse e.g. when zooming in or out of an AutoCAD
drawing.
In AutoCAD it does not display anything in the command prompt when user
rolls the wheel -- so it
is not actually an ordinary zoom -- it is something else .. zooming
that is generated from a rolling
of the wheel is really a strange kind of zoom to me -- that I do not
have an idea how to trap,
and yet I have to trap.
All kinds of ordinary zoom require somekind of click or drag using the
mouse buttons accompanied
by a movement of the mouse itself -- but a zoom from a wheel of a mouse
does not need any movement of the mouse at all -- it does not even
require the user to click on any button -- it is
pure rolling of the wheel -- moreover, unlike ordinary zoom which sends
something to the command
line (allowing user to simulate or trap it through code) a zooming
accomplished by rolling the wheel
does not send anything in the command line at all.
Does anyone have an idea how it can be trapped? Any suggestion welcome.
Matt
|
|
|
| Back to top |
|
 |
Lanny
Guest
|
Posted:
Sat Mar 26, 2005 1:17 am Post subject:
Re: Trapping Wheel Mouse Roll Event -- An Esoteric Question |
|
|
You could check against the 'VIEWSIZE' & 'VIEWCTR' variables -- if they change you can revert to values you want.
HTH. - Lanny |
|
| Back to top |
|
 |
|
|
|
|