Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Cocoa: Mouse Events on Shells with NO_FOCUS style and defined Region
Cocoa: Mouse Events on Shells with NO_FOCUS style and defined Region [message #661134] Wed, 23 March 2011 06:26
Eclipse UserFriend
Our application makes use of Shells as a highlighting mechanism. In order to highlight a section of the UI, we create a Shell with a background color at the bounds that we wish to highlight. The Shell has the style SWT.NO_TRIM | SWT.ON_TOP | SWT.NO_FOCUS, a background color, and a defined Region such that it forms a rectangular outline of a specific component.

On Windows, GTK, and Carbon, the Shells serve their purpose: Highlighting without "intercepting" mouse events. On Cocoa however, the Shells receive mouse events, meaning that the Shells interfere with the standard behavior of the rest of the application. Cocoa also differs from the other platforms in that Display.getCursorControl() returns the highlighting Shell, rather than the Control that is being "highlighted". Is this expected / intentional behavior for the Cocoa SWT implementation? If yes, can anyone suggest a different way to achieve this highlighting?
Previous Topic:any online help like MSDN for eclipse download
Next Topic:Grouping menus in context menu
Goto Forum:
  


Current Time: Tue Nov 04 22:31:02 EST 2025

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

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

Back to the top