Problem changing SWT layout
Posted by frank on Oct 25, 2013; 12:28pm
URL: https://forum.jogamp.org/Problem-changing-SWT-layout-tp4030374.html
Hello,
I have an old application consisting of a SWT composite that contains four GLCanvas.
This old application used to work with JOGL 1.
I've ported it to JOGL 2 and almost everything is working fine.
The problem comes when I change GLCanvas layout order. By calling moveBelow(Composite) method on these GLCanvas, the rendering is stopped !
I have no idea to solve the issue ;-(
Any help would be very appreciated ?
Thanks,
frank
PS : I'm far from being an OPENGL developer, which means that I am certainly misusing the OPENGL API
Here is the code used to change layout :
if (legendPosition != this.legendPosition) {
if (legendPosition == SWT.TOP)
legendArea.moveBelow(leftAxisArea);
else
legendArea.moveBelow(bottomAxisArea);
legendArea.setVisible(true);
showLegend = true;
layout(true);
this.legendPosition = legendPosition;
}