Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Mouse Wheel
Mouse Wheel [message #437003] Thu, 27 May 2004 22:32 Go to next message
Ken is currently offline KenFriend
Messages: 8
Registered: July 2009
Junior Member
What events does a mouse wheel generate? It doesn't seem to be any of the
Mouse events listed in the API for SWT, or any of the obvious keyboard
events.

Thanks,

Ken
Re: Mouse Wheel [message #437069 is a reply to message #437003] Fri, 28 May 2004 12:58 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=7101

"Ken" <khirmint@netscape.net> wrote in message
news:c95q9n$v6v$1@eclipse.org...
> What events does a mouse wheel generate? It doesn't seem to be any of the
> Mouse events listed in the API for SWT, or any of the obvious keyboard
> events.
>
> Thanks,
>
> Ken
>
>
>
>
Re: Mouse Wheel [message #437072 is a reply to message #437003] Fri, 28 May 2004 13:33 Go to previous message
Stefan Zeiger is currently offline Stefan ZeigerFriend
Messages: 102
Registered: July 2009
Senior Member
Ken wrote:
> What events does a mouse wheel generate? It doesn't seem to be any of the
> Mouse events listed in the API for SWT, or any of the obvious keyboard
> events.

It doesn't generate any events. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=7101 for details.

When you create a widget with V_SCROLL, the mouse wheel controls the
widget's vertical scroll bar. This works even when the scroll bar is
hidden (at least on Windows). I suppose you could listen for events on a
hidden scrollbar and reset it to a center position after receiving an event.

--
Stefan Zeiger http://www.szeiger.de http://www.novocode.com
My SWT controls: http://www.novocode.com/swt
Previous Topic:Propagating Layouts throughout classes
Next Topic:Drag and Drop on Mac?
Goto Forum:
  


Current Time: Fri Apr 26 04:25:30 GMT 2024

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

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

Back to the top