[Gtk-sharp-list] Using RadioButtons
Iain McCoy
iain@mccoy.id.au
Tue, 09 Mar 2004 21:44:44 +1100
On Tue, 2004-03-09 at 02:36, Antonio Martínez Álvarez wrote:
> rb1 = new RadioButton(null, "RB 1");
> rb2 = new RadioButton(null, "RB 2");
> rb3 = new RadioButton(null, "RB 3");
> rb2.Group = rb1.Group;
> rb3.Group = rb1.Group;
I believe RadioButton has a constructor that makes this simpler, so you
say:
rb1 = new RadioButton(null, "RB 1");
rb2 = new RadioButton(rb1, "RB 2");
rb3 = new RadioButton(rb1, "RB 3");
to put rb2 and rb3 into rb1's group, rather than doing it manually.
--
Iain McCoy <iain@mccoy.id.au>