[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[platform-swt-dev] Controlling the grouping of radio buttons
|
- From: Mark Wallace <mark.e.wallace@xxxxxxxxx>
- Date: Thu, 16 Feb 2006 12:12:07 +0000
- Delivered-to: platform-swt-dev@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=TJd8m3H8tHRs3pr0cpoR+TVvvjEbrNCgH7jgXXEd9bKhhdLbL2MqUPKoecqA5Weq+9TpwgcOQnRZ8DJqSflRUg6BZ+/S/EFLiUISdl/x43akcQEhdz6uYz0pCMmoZLUceeLakeqcvUl3ExJnHk6u+/aq1YDkG8JkchDfY4Y4tlU=
Hi,
is it possible to control the grouping of radio buttons which sahred the same composite
For example if I have:
Button button1 = new Button(shell, SWT.RADIO);
button1.setText("Radio 1");
Button button2 = new Button(shell, SWT.RADIO);
button2.setText("Radio 2");
Button buttonA = new Button(shell,
SWT.RADIO);
buttonA.setText("Radio A");
Button buttonB = new Button(shell, SWT.RADIO);
buttonB.setText("Radio B");
By default these are all in the same group so only one can be selected.
What I want to be able to do is group Radio 1 & Radio 2 and have a seperate group for Radio A & Radio B.
I know I can do this be creating additional Composites but I want to do this and have all buttons share the same parent.
thanks Mark