-
- (void)new wxStaticText(this, -1, "Try checking the box below and\n"
- "then going back and clearing it");
-
- m_checkbox = new wxCheckBox(this, -1, "&Skip the next page",
- wxPoint(5, 30));
+
+ wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
+
+ mainSizer->Add(
+ new wxStaticText(this, -1, _T("Try checking the box below and\n")
+ _T("then going back and clearing it")),
+ 0, // No vertical stretching
+ wxALL,
+ 5 // Border width
+ );
+
+ m_checkbox = new wxCheckBox(this, -1, _T("&Skip the next page"));
+ mainSizer->Add(
+ m_checkbox,
+ 0, // No vertical stretching
+ wxALL,
+ 5 // Border width
+ );
+
+ SetSizer(mainSizer);
+ mainSizer->Fit(this);