+ m_checkbox = new wxCheckBox(this, -1, _T("&Check me"));
+
+ wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
+ mainSizer->Add(
+ new wxStaticText(this, -1,
+ _T("You need to check the checkbox\n")
+ _T("below before going to the next page\n")),
+ 0,
+ wxALL,
+ 5
+ );
+
+ mainSizer->Add(
+ m_checkbox,
+ 0, // No stretching
+ wxALL,
+ 5 // Border
+ );
+ SetSizer(mainSizer);
+ mainSizer->Fit(this);