Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » context menu appears on mouseUp under Windows, but on mouseDown under Mac OS
context menu appears on mouseUp under Windows, but on mouseDown under Mac OS [message #630634] Mon, 04 October 2010 12:57 Go to next message
Patrick Oppermann is currently offline Patrick OppermannFriend
Messages: 10
Registered: July 2009
Junior Member
Hi everybody,

in my GEF-based RCP application, I implemented a mouse behavior that
involves dragging with the right mouse button held down. On mouseUp, a
custom context menu is supposed to appear. On Windows everything works
fine, on Mac OSX, however, the context menu (generally) appears at
mouseDown rather than at the mouseUp event, so dragging with the right
mouse button pressed is impossible. This is not only in the GEF diagram
editor, but system-wide. Is there a way to alter this behavior or
suppress the context menu triggering on mouseDown?

Greetings,
Patrick
Re: context menu appears on mouseUp under Windows, but on mouseDown under Mac OS [message #630888 is a reply to message #630634] Tue, 05 October 2010 13:18 Go to previous message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Hi,

The pop-up menu appearing on mouse down is the correct platform behavior on Mac. To change this behavior, in the mouse listener you could use Menu.isVisible() to detect if the menu is visible and then call Menu.setVisible(visible) to show/hide the menu when required.



Lakshmi P Shanmugam
Previous Topic:word-application hangs while running ole-element in background.
Next Topic:SWT Threads
Goto Forum:
  


Current Time: Fri Apr 19 22:02:07 GMT 2024

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

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

Back to the top