X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/453535a739f649ce43a65fd7e6b9730363bb1b7c..74b965198ce3a4257deac901b6f7517e6447ca0f:/samples/widgets/toggle.cpp diff --git a/samples/widgets/toggle.cpp b/samples/widgets/toggle.cpp index 6c4734d7ab..8f4f9f8b75 100644 --- a/samples/widgets/toggle.cpp +++ b/samples/widgets/toggle.cpp @@ -132,14 +132,14 @@ void ToggleWidgetsPage::CreateContent() // wxSizer *sizerLeft = new wxStaticBoxSizer(box, wxVERTICAL); // middle pane - wxStaticBox *box2 = new wxStaticBox(this, wxID_ANY, _T("&Operations")); + wxStaticBox *box2 = new wxStaticBox(this, wxID_ANY, wxT("&Operations")); wxSizer *sizerMiddle = new wxStaticBoxSizer(box2, wxVERTICAL); wxSizer *sizerRow = CreateSizerWithTextAndButton(TogglePage_ChangeLabel, - _T("Change label"), + wxT("Change label"), wxID_ANY, &m_textLabel); - m_textLabel->SetValue(_T("&Toggle me!")); + m_textLabel->SetValue(wxT("&Toggle me!")); sizerMiddle->Add(sizerRow, 0, wxALL | wxGROW, 5); @@ -163,8 +163,6 @@ void ToggleWidgetsPage::CreateContent() Reset(); SetSizer(sizerTop); - - sizerTop->Fit(this); } void ToggleWidgetsPage::Reset()