]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/notebook/test.cpp
Added getters/setters for cell and grid-default editors
[wxWidgets.git] / samples / notebook / test.cpp
index e140f42cc5a807a2723fa35f15b76898d14c4798..39da5d394acd4e6b9bc4472588e09678690cd33f 100644 (file)
@@ -99,23 +99,25 @@ void MyApp::InitTabView(wxNotebook* notebook, wxPanel* window)
 
   wxString animals[] = { "Fox", "Hare", "Rabbit", "Sabre-toothed tiger", "T Rex" };
   wxRadioBox *radiobox = new wxRadioBox(panel2, -1, "Choose one",
-                                        wxDefaultPosition, wxDefaultSize, 5, animals);
+                                        wxDefaultPosition, wxDefaultSize, 5, animals,
+                                        2, wxRA_SPECIFY_ROWS);
 
   c = new wxLayoutConstraints;
-  c->left.SameAs(panel2, wxLeft, 4);
-  c->top.SameAs(panel2, wxTop, 4);
+  c->left.SameAs(panel2, wxLeft, 10);
+  c->top.SameAs(panel2, wxTop, 5);
   c->height.PercentOf(panel2, wxHeight, 50);
-  c->right.SameAs(panel2, wxRight, 4);
+  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);
+
   c = new wxLayoutConstraints;
   c->left.SameAs(radiobox, wxLeft);
   c->height.AsIs();
-  c->top.Below(radiobox, 4);
+  c->top.Below(radiobox, 5);
   c->right.SameAs(radiobox, wxRight);
   radiobox2->SetConstraints(c);