Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Distinguishing MouseWheel up and down events
Distinguishing MouseWheel up and down events [message #459597] Fri, 12 August 2005 00:53 Go to next message
Mark McLaren is currently offline Mark McLarenFriend
Messages: 45
Registered: July 2009
Member
I've spent about 20 minutes trying to figure out how to distinguish
between a "mouse wheel up" and "mouse wheel down" event! I'm receiving
the SWT.MouseWheel event, but the resulting Event object doesn't seem to
depend on the direction the wheel was turned. Any clues from the higher
powers?
Re: Distinguishing MouseWheel up and down events [message #459611 is a reply to message #459597] Fri, 12 August 2005 16:10 Go to previous messageGo to next message
Harleen Sahni is currently offline Harleen SahniFriend
Messages: 5
Registered: July 2009
Junior Member
Use the count field on the event, it's possitve for up and negative for down

Mark McLaren wrote:
> I've spent about 20 minutes trying to figure out how to distinguish
> between a "mouse wheel up" and "mouse wheel down" event! I'm receiving
> the SWT.MouseWheel event, but the resulting Event object doesn't seem to
> depend on the direction the wheel was turned. Any clues from the higher
> powers?
>
>
>
>
Re: Distinguishing MouseWheel up and down events [message #459680 is a reply to message #459611] Sat, 13 August 2005 03:35 Go to previous message
Mark McLaren is currently offline Mark McLarenFriend
Messages: 45
Registered: July 2009
Member
Doh!

Thanks
Previous Topic:TableTree
Next Topic:adding new jars to the classpath
Goto Forum:
  


Current Time: Tue Apr 20 14:57:09 GMT 2021

Powered by FUDForum. Page generated in 0.01995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top