Shell full screen support for OS X >= 10.7 [message #903935] |
Mon, 27 August 2012 11:09 |
Albert Pikus Messages: 70 Registered: October 2009 |
Member |
|
|
Hi, everyone,
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.
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?
I tested this with Mac OS X 10.7, Oracle Java 6 and SWT 4.2.
Best regards,
Albert
[Updated on: Mon, 27 August 2012 11:25] Report message to a moderator
|
|
|
|
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 Messages: 70 Registered: October 2009 |
Member |
|
|
Brian de Alwis wrote on Mon, 03 September 2012 08:59Albert 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.
Quote:
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?
See Shell#setFullscreen().
Brian.
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,
Albert
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03641 seconds