+{
+ wxNotebook *notebook = new wxNotebook(this, wxID_ANY);
+ notebook->AddPage(CreateButtonPage(notebook), wxT("Button"));
+ notebook->AddPage(CreateTextPage(notebook), wxT("Text"));
+
+ wxSizer *sizerV = new wxBoxSizer(wxVERTICAL);
+ sizerV->Add(notebook, wxSizerFlags(1).Expand());
+
+ wxListBox *lbox = new wxListBox(this, wxID_ANY);
+ lbox->AppendString(wxT("Just a"));
+ lbox->AppendString(wxT("simple"));
+ lbox->AppendString(wxT("listbox"));
+ sizerV->Add(lbox, wxSizerFlags(1).Expand());
+
+ SetSizerAndFit(sizerV);
+}
+
+wxWindow *MyPanel::CreateButtonPage(wxWindow *parent)
+{
+ wxSizerFlags flagsBorder = wxSizerFlags().Border().Centre();
+
+ wxPanel *page = new wxPanel(parent);
+ wxSizer *sizerPage = new wxBoxSizer(wxHORIZONTAL);
+ sizerPage->Add(new wxButton(page, wxID_ANY, wxT("&First")), flagsBorder);
+ sizerPage->Add(new wxStaticText(page, wxID_ANY, wxT("[st&atic]")),
+ flagsBorder);
+ sizerPage->Add(new wxButton(page, wxID_ANY, wxT("&Second")), flagsBorder);
+
+ page->SetSizer(sizerPage);
+
+ return page;
+}
+
+wxWindow *MyPanel::CreateTextPage(wxWindow *parent)