+ wxButton *btn = new wxButton(this, StaticPage_Reset, wxT("&Reset"));
+ sizerLeft->Add(btn, 0, wxALIGN_CENTRE_HORIZONTAL | wxALL, 15);
+
+ // middle pane
+ wxSizer *sizerMiddle = new wxStaticBoxSizer(wxVERTICAL, this,
+ "&Change labels");
+
+ m_textBox = new wxTextCtrl(this, wxID_ANY, wxEmptyString);
+ wxButton *b1 = new wxButton(this, wxID_ANY, "Change &box label");
+ b1->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
+ wxCommandEventHandler(StaticWidgetsPage::OnButtonBoxText),
+ NULL, this);
+ sizerMiddle->Add(m_textBox, 0, wxEXPAND|wxALL, 5);
+ sizerMiddle->Add(b1, 0, wxLEFT|wxBOTTOM, 5);
+
+ m_textLabel = new wxTextCtrl(this, wxID_ANY, wxEmptyString,
+ wxDefaultPosition, wxDefaultSize,
+ wxTE_MULTILINE|wxHSCROLL);
+ wxButton *b2 = new wxButton(this, wxID_ANY, "Change &text label");
+ b2->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
+ wxCommandEventHandler(StaticWidgetsPage::OnButtonLabelText),
+ NULL, this);
+ sizerMiddle->Add(m_textLabel, 0, wxEXPAND|wxALL, 5);
+ sizerMiddle->Add(b2, 0, wxLEFT|wxBOTTOM, 5);
+
+#if wxUSE_MARKUP
+ m_textLabelWithMarkup = new wxTextCtrl(this, wxID_ANY, wxEmptyString,
+ wxDefaultPosition, wxDefaultSize,
+ wxTE_MULTILINE|wxHSCROLL);
+
+ wxButton *b3 = new wxButton(this, wxID_ANY, "Change decorated text label");
+ b3->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
+ wxCommandEventHandler(StaticWidgetsPage::OnButtonLabelWithMarkupText),
+ NULL, this);
+ sizerMiddle->Add(m_textLabelWithMarkup, 0, wxEXPAND|wxALL, 5);
+ sizerMiddle->Add(b3, 0, wxLEFT|wxBOTTOM, 5);
+
+ m_chkGreen = CreateCheckBoxAndAddToSizer(sizerMiddle,
+ "Decorated label on g&reen");
+#endif // wxUSE_MARKUP
+
+ // final initializations
+ // NB: must be done _before_ calling CreateStatic()
+ Reset();
+
+ m_textBox->SetValue(wxT("This is a &box"));
+ m_textLabel->SetValue(wxT("And this is a\n\tlabel inside the box with a &mnemonic.\n")
+ wxT("Only this text is affected by the ellipsize settings."));
+#if wxUSE_MARKUP
+ m_textLabelWithMarkup->SetValue(wxT("Another label, this time <b>decorated</b> ")
+ wxT("with <u>markup</u>; here you need entities ")
+ wxT("for the symbols: < > & ' " ")
+ wxT(" but you can still place &mnemonics..."));
+#endif // wxUSE_MARKUP