|Re: Shell full screen support for OS X >= 10.7 [message #907949 is a reply to message #907175]
||Tue, 04 September 2012 13:34
| Albert Pikus
Registered: October 2009
Brian de Alwis wrote on Mon, 03 September 2012 08:59|
Albert Pikus wrote on Mon, 27 August 2012 07:09
I wonder if it is possible to enable/disable full screen button in top right corner of a Shell when application is running on Mac OS X 10.7 or higher. I noticed that a top-level Shell created with Display argument always has a "full screen button", while a child Shell (created with Shell argument) never has this button.
I don't think so: the choice was deliberately made (https://bugs.eclipse.org/bugs/show_bug.cgi?id=349148#c16). You could use platform-specific calls and reflection to enable it if you like -- see elsewhere in that bug for details.
Looking at SWT API, there doesn't seem to be a method that would enable/disable full screen feature.
I would like to enable/disable full screen support for each Shell individually, no matter if this is a top-level or child Shell - is this possible at all?
Hi, thank you for your answer.
I'm aware of Shell's setFullscreen() method, but this is not what I want to do on Mac: I have a child Shell (created with parent Shell argument) that I would like to switch to/from full screen mode the "Mac way", that is, by using top right full screen button introduced with OS X 10.7.
So if I want to add "full screen" button to a child Shell, I'll have to use reflection. I think that this decision that only top level Shells (descendants of Display) can have full screen button is a bit clumsy: a typical case where full screen button would make sense in a non-top level Shell is a video player that opens inside application's child Shell.
Thank you for your suggestions, best regards,
Powered by FUDForum
. Page generated in 0.02036 seconds