Missing "Struts and Springs" palette [message #770984] |
Mon, 26 December 2011 01:28  |
Eclipse User |
|
|
|
I'm trying to build some views for my RCP project, and would like to try a BoxLayout.
The problem is that there is no "Struts and Springs" palette anywhere, and no way to adjust the boxlayout!
How do I get this palette?
|
|
|
Re: Missing "Struts and Springs" palette [message #771012 is a reply to message #770984] |
Mon, 26 December 2011 03:32   |
Eclipse User |
|
|
|
I would not recommend using BoxLayout under SWT/RCP. There are much better choices available.
BoxLayout is a native Swing layout that has only been partially ported to SWT (no SWT Box class, so no corresponding struts and springs).
Use SWT GridLayout (best choice) or FormLayout.
|
|
|
Re: Missing "Struts and Springs" palette [message #771016 is a reply to message #771012] |
Mon, 26 December 2011 03:44   |
Eclipse User |
|
|
|
I've tried GridLayout, but haven't succeeded in making it do what I want.
I have 2 Composites. I'd like one to be at the left, and the other to be at the right, both re-sizing width as needed depending on their contents.
|
|
|
|
Re: Missing "Struts and Springs" palette [message #771254 is a reply to message #771177] |
Mon, 26 December 2011 19:37   |
Eclipse User |
|
|
|
I'm currently trying FormLayout. I think I have it working correctly, though the WindowBuilder GUI is being confusing.
When I click on one of the Composites that is in the form, all the alignment buttons show up on the tool bar - and ALL of them are disabled.
If I right-click on the composite, I can use the "Quick Constraints" popup menu, and those seem to work.
The documentation talks about a "Floating Layout Assistant" - which I have been unable to find.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03381 seconds