Skip to main content



      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 11:05 Go to next message
Eclipse UserFriend
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 17:25 Go to previous message
Eclipse UserFriend
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:Detect drop-location on system
Next Topic:OpenGL versions supported by natives libraries ?
Goto Forum:
  


Current Time: Sun Jul 06 22:54:22 EDT 2025

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

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

Back to the top