Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problem with column order using Eclipse Forms ColumnLayout
Problem with column order using Eclipse Forms ColumnLayout [message #296323] Tue, 20 December 2005 12:25
Eclipse UserFriend
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
Previous Topic:using the internal tomcat plugin
Next Topic:Projects do not build automatically after importing in workspace
Goto Forum:
  


Current Time: Mon Nov 03 14:59:42 EST 2025

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

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

Back to the top