Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Howto exactly identify the Middle Mouse Button was used?
Howto exactly identify the Middle Mouse Button was used? [message #452158] Mon, 14 March 2005 17:15 Go to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Hi,

I am wondering if its possible to exactly determine wether the
Middle-Mouse-Button was pressed,
or if the "button" field in MouseEvent depends on the Mouse I am using.

An example:
Using a 3 Button Mouse, the middle mouse button will have event.button = 2
Using a 2 Button Mouse, the right mouse button (normaly used to open the
context
menu) will also have event.button = 2, or not?

Regards,
Ben
Re: Howto exactly identify the Middle Mouse Button was used? [message #452216 is a reply to message #452158] Tue, 15 March 2005 14:24 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
The right mouse button is always button=3, even on a 2-button mouse.

Grant

"Benjamin Pasero" <bpasero@rssowl.org> wrote in message
news:d14gqh$tov$1@www.eclipse.org...
> Hi,
>
> I am wondering if its possible to exactly determine wether the
> Middle-Mouse-Button was pressed,
> or if the "button" field in MouseEvent depends on the Mouse I am using.
>
> An example:
> Using a 3 Button Mouse, the middle mouse button will have event.button = 2
> Using a 2 Button Mouse, the right mouse button (normaly used to open the
> context
> menu) will also have event.button = 2, or not?
>
> Regards,
> Ben
Previous Topic:changing the height of tableitem(s)
Next Topic:advanced GUI with resizable sections
Goto Forum:
  


Current Time: Fri Apr 19 02:31:39 GMT 2024

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

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

Back to the top