Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Put an embeddable frame (contained by a ViewPart) into full screen mode
Put an embeddable frame (contained by a ViewPart) into full screen mode [message #639995] Thu, 18 November 2010 16:05 Go to next message
Julien Gouesse is currently offline Julien GouesseFriend
Messages: 3
Registered: November 2010
Junior Member
Hi!

I create an RCP application containing a ViewPart. This ViewPart contains a Composite (set to EMBEDDED), this Composite contains an embeddable frame created by SWT_AWT.new_Frame. This AWT frame contains a GLCanvas (the OpenGL canvas of JOGL 2, not its SWT equivalent). I would like to display only this frame in full screen mode when pressing F11.

However, if I call setFullscreen(true) on the Shell, the whole application is in full screen mode, not only this frame. The AWT parent of this frame is null and I don't find how to remove it from its SWT parent. Using setData does not allow me to do it. When I try to maximize this frame, it has no effect. If I try to use the fullscreen exclusive mode, it does not work too. I cannot call dispose() on the frame because it destroys the native resources of the OpenGL canvas too.

How can I remove an SWT component from its parent? Is dispose() the only solution?
Re: Put an embeddable frame (contained by a ViewPart) into full screen mode [message #640341 is a reply to message #639995] Sat, 20 November 2010 22:25 Go to previous message
Julien Gouesse is currently offline Julien GouesseFriend
Messages: 3
Registered: November 2010
Junior Member
Hi!

Ok I reply to myself. Remove the closing listener of the JOGL 2 GLCanvas, move this canvas from the embedded frame created by SWT to the AWT Frame, move some listeners from the first one to the second one and it works Very Happy
Previous Topic:SWT.TRANSPARENT on linux?
Next Topic:OpenGL versions supported by natives libraries ?
Goto Forum:
  


Current Time: Tue Oct 24 05:52:48 GMT 2017

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

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