- wxButton* button = new wxButton(this, TheButton, "Button");
- button->SetName("TheButton");
+ wxPanel *panel = new wxPanel(this);
+
+ wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
+ panel->SetSizer(sizer);
+
+ m_button = new wxButton(panel, wxID_ANY, "&Button");
+ sizer->Add(m_button, wxSizerFlags().Centre().Border());
+
+ m_text = new wxTextCtrl(panel, wxID_ANY, "",
+ wxDefaultPosition, wxDefaultSize,
+ wxTE_MULTILINE);
+ sizer->Add(m_text, wxSizerFlags(1).Expand().Border());