Re: Problem changing SWT layout
Posted by
frank on
Oct 26, 2013; 7:06am
URL: https://forum.jogamp.org/Problem-changing-SWT-layout-tp4030374p4030388.html
Well... this is not a stack layout that I want to use ! I don't want to swap between several GLCanvas with topControl field of the stack layout because only one GLCanvas would be visible at a time. All of my GLCanvas are always visible and layered in a grid layout. All I want to do is to reorganize these GLCanvas positions using moveBelow() :
"Moves the receiver below the specified control in the drawing order. If the argument is null, then the receiver is moved to the bottom of the drawing order. The control at the bottom of the drawing order will be covered by all other controls which occupy intersecting areas."
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fswt%2Fwidgets%2FControl.htmlI'm not sure it is a SWT "issue" as it was not a problem with JOGL 1 and of course moveBelow method is working fine with standard SWT widgets.
But I've not found any solution ;-(
"There are several developers claiming that some controls gets disposed when moved below another one on StackOverflow"
I Will have a look at that on StackOverflow.
"If you want to avoid your canvas from being disposed, use another approach (maybe a StackLayout, a NEWT SWT canvas or JogAmp SWT OpenGL heavyweight canvas called GLCanvas too but in a different package)."
I Will test NEWT and the other GLCanvas.
thanks a lot,
frank