Layout woes [message #674531] |
Fri, 27 May 2011 05:23  |
Eclipse User |
|
|
|
Hi,
I am trying to achieve the following using swt in a small dialog.
I want x amount of radio buttons and each radio button has an associated amount of controls.
For example:
(1) RadioButton1 Label Spinner
(2) RadioButton2 Label Spinner Label Spinner
(3) RadioButton3 Many checkboxes(max 31 as in days of month)
Now i have managed to layout this where the RadioButtons are part of a root composite and then the controls are layed out in a new composite on the next line.
Example:
(1) RadioButton1 (Within composite named root with GridLayout(1, false)
Label Spinner (Within subcomposite of root with GridLayout(2, false)
(2) RadioButton2 (Within composite named root with GridLayout(1, false)
Label Spinner Label Spinner
(Within subcomposite of root with GridLayout(4, false)
(3) RadioButton3 (Within composite named root with GridLayout(1, false)
Many checkboxes(max 31 as in days of month)
(Within subcomposite of root with GridLayout(12, false) (So controls wrap)
But i would like to lay this out so that the radio button and associated controls are all on the same line. I obviously want to preserve the radio buttons in the same composite so that i get the radio button selection behaviour.
Can anyone give me any tips as to how i might approach this so that the layout looks nice.
Thanks
Clive
|
|
|
|
Powered by
FUDForum. Page generated in 0.06579 seconds