+ m_radioEllipsize = new wxRadioBox(this, wxID_ANY, wxT("&Ellipsize mode"),
+ wxDefaultPosition, wxDefaultSize,
+ WXSIZEOF(ellipsizeMode), ellipsizeMode,
+ 3);
+
+ sizerLeft->Add(m_radioEllipsize, 0, wxGROW | wxALL, 5);
+
+ 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