SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by jbodapatla » Tue Jul 20, 2004 12:26 pm
SWT Designer is not allowing attaching to left and right
edges of other Controls from center Control. For example
I have three controls, a Label on the left, Text in the
middle, a Button on the right side of Text, I would like
attach to Lable which left and Right which is Button
from Text so that Text would be stretched when
when Window is resized. Designer shows only the left
Control, even though Formlayout allows.
-
jbodapatla
-
- Posts: 10
- Joined: Tue Jul 20, 2004 10:46 am
by Eric Clayberg » Tue Jul 20, 2004 7:11 pm
jbodapatla wrote:SWT Designer is not allowing attaching to left and right
edges of other Controls from center Control. For example
I have three controls, a Label on the left, Text in the
middle, a Button on the right side of Text, I would like
attach to Lable which left and Right which is Button
from Text so that Text would be stretched when
when Window is resized. Designer shows only the left
Control, even though Formlayout allows.
You are only allowed to attach to controls that have been defined before selected widget (they don't exist otherwise). You will need to change the definition order to the widgets (via drag/drop in the widget tree) to get the effect you are looking for (e.g., make sure that the text widget appears after the label and the button in the definition order). You might also find that GridLayout would give you a better ability to create the layout you describe.
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
by jbodapatla » Wed Jul 21, 2004 9:43 am
Thanks Eric. I was just testing features of Formlayout and
this ability was one of them.
-
jbodapatla
-
- Posts: 10
- Joined: Tue Jul 20, 2004 10:46 am
Return to SWT Designer
Who is online
Users browsing this forum: No registered users and 1 guest