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 diltonm » Wed Mar 24, 2010 7:42 am
Using Eclipse 3.5.2 and the new 7.4.
When I try to position a TextBox near and horizontally aligned with a Label, the designer insists on dropping the TextBox where it wants, not where I want. Attaching a screenshot to show what I'm discussing.
- Attachments
-
- Screenshot-FormLayout-weirdness.png (2.63 KiB) Viewed 146 times
-
diltonm
-
- Posts: 12
- Joined: Sat Apr 04, 2009 7:13 pm
by Alexander.Mitin » Wed Mar 24, 2010 11:50 am
I guess if you overlap the Label by the Text then the move operation cancelled. Can you provide the class which you edit?
As an option, you can use 'classic' style of FormLayout editing (see WindowBuilder Preferences->SWT->Layouts->FormLayout->FormLayout editing mode): it hasn't got any AI and allows you to do just everything
Alexander Mitin
-
Alexander.Mitin
- Moderator
-
- Posts: 155
- Joined: Fri Jan 19, 2007 3:57 am
by diltonm » Thu Mar 25, 2010 12:59 pm
Thanks for the tip. In the interest of finishing the window I switched to a GridLayout. I use the Classic, I can't get the AI to work (right) when I use Automatic.
-
diltonm
-
- Posts: 12
- Joined: Sat Apr 04, 2009 7:13 pm
by Eric Clayberg » Thu Mar 25, 2010 3:32 pm
GridLayout is typically always a better choice than FormLayout for building form-based UIs (even though the names might lead you to conclude otherwise).
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
Return to SWT Designer
Who is online
Users browsing this forum: Google [Bot] and 2 guests