| Problem with column order using Eclipse Forms ColumnLayout [message #296323] |
Tue, 20 December 2005 12:25 |
Eclipse User |
|
|
|
Hi everybody,
I want to write my own FormEditor. So I have subclassed FormPage and added
two SectionPart-Objects using ColumnLayout with minNumColumns=1 and
maxNumColumns=2.
When the EditorArea is narrow and ColumnLayout uses one column, everything
is OK: the SectionPart I have added first apears above the second added
SectionPart.
Screenshot: http://pixerve.de/33228/ColumnLayout-1.html
But whenever the EditorArea's width increases and ColumnLayout uses two
columns, not the SectionPart I have added first is on the left, but the
SectionPart I added second. The both SectionParts seem to have changed
their places.
Screenshot: http://pixerve.de/33229/ColumnLayout-2.html
The code snippet looks like that:
<code>
protected void fillContentPanel(Composite contentPanel, FormToolkit
toolkit) {
ColumnLayout layout = new ColumnLayout();
layout.topMargin = 0;
layout.bottomMargin = 5;
layout.leftMargin = 10;
layout.rightMargin = 10;
layout.horizontalSpacing = 20;
layout.verticalSpacing = 20;
layout.minNumColumns = 1;
layout.maxNumColumns = 2;
contentPanel.setLayout(layout);
m_VehicleIdSection = new VehicleIdSection(contentPanel, toolkit);
m_VehicleDataSection = new VehicleDataSection(contentPanel, toolkit);
}
</code>
Could anybody tell me, why the SectionPart-Order is changed? Did I do
something wrong or is this the normal behaviour of ColumnLayout?
Maybe it takes the shortest coulumn first? Can I modify this behaviour
using ColumnLayoutData? I have not been successful so far.
TIA,
Joerg
|
|
|
Powered by
FUDForum. Page generated in 0.03464 seconds