X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/453535a739f649ce43a65fd7e6b9730363bb1b7c..f3cf14a9057b3ddd6a8f8fc025e4edc3d2bb0f5b:/samples/widgets/toggle.cpp?ds=sidebyside diff --git a/samples/widgets/toggle.cpp b/samples/widgets/toggle.cpp index 6c4734d7ab..b568226580 100644 --- a/samples/widgets/toggle.cpp +++ b/samples/widgets/toggle.cpp @@ -6,7 +6,7 @@ // Created: 27 Sep 2003 // Id: $Id$ // Copyright: (c) 2006 Wlodzmierz Skiba -// License: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -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()