TableWrapLayout: position element at the beginning of a new row? [message #21554] |
Tue, 14 July 2009 16:55 |
Eclipse User |
|
|
|
Hello!
Currently i'm creating a GUI with eclipse forms using the TableWrapLayout
with layout.numColumns = 4.
Is it possible to position an element at the beginnin of a new row even if
there would be enough space in the current row?
I want to do something like this in a more elegant and dynamic way:
toolkit.createLabel(parent, "#1");
layoutData = new TableWrapData();
label.setLayoutData(layoutData);
toolkit.createLabel(parent, "#1");
layoutData = new TableWrapData();
//This element is in column 2, so it must have the length of 3 columns to
let the next element begin a new row.
layoutData.colspan = 3;
label.setLayoutData(layoutData);
toolkit.createLabel(parent, "#1");
layoutData = new TableWrapData();
label.setLayoutData(layoutData);
Another similar question: is it possible to skip a "cell" without using
colspan or adding an unvisible lable?
Thanks,
Fabian
|
|
|
Powered by
FUDForum. Page generated in 0.04566 seconds