Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:26
Zeb Ford-Reitz is currently offline Zeb Ford-ReitzFriend
Messages: 33
Registered: November 2010
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: Thu Mar 04 17:23:10 GMT 2021

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

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

Back to the top