- (void)new wxListBox(panel2, -1, wxPoint(5, 5), wxSize(170, 80), 5, animals);
+ wxRadioBox *radiobox = new wxRadioBox(panel2, -1, "Choose one",
+ wxDefaultPosition, wxDefaultSize, 5, animals,
+ 2, wxRA_SPECIFY_ROWS);
+
+ c = new wxLayoutConstraints;
+ c->left.SameAs(panel2, wxLeft, 10);
+ c->top.SameAs(panel2, wxTop, 5);
+ c->height.PercentOf(panel2, wxHeight, 50);
+ c->right.SameAs(panel2, wxRight, 10);
+ radiobox->SetConstraints(c);
+
+ wxRadioBox *radiobox2 = new wxRadioBox(panel2, -1, "Choose one",
+ wxDefaultPosition, wxDefaultSize,
+ 5, animals,
+ 2, wxRA_SPECIFY_ROWS);