X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cbcfb73a037462ccf4d54b3e50c58e37cc61aa9..226de48a85fdfc8ada9c5fa942f94eecc7dc7f8c:/samples/minimal/minimal.cpp diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index 394c1242b5..b9403d3469 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -162,13 +162,6 @@ MyFrame::MyFrame(const wxString& title) SetMenuBar(menuBar); #endif // wxUSE_MENUS - wxPanel *p = new wxPanel(this); - new wxStaticText(p, -1, _T("Foo"), wxPoint(10, 10)); - wxStaticText *text = new wxStaticText(p, -1, _T("This is a very, very, extremely and even more than you could have thought it long string"), wxPoint(10, 40)); - text->Wrap(150); - - (new wxTextCtrl(p, -1, _T("Hi"), wxPoint(10, 70)))->SetEditable(false); - #if wxUSE_STATUSBAR // create a status bar just for fun (by default with 1 pane only) CreateStatusBar(2); @@ -187,9 +180,15 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) { - wxString msg; - msg.Printf( _T("This is the About dialog of the minimal sample.\n") - _T("Welcome to %s"), wxVERSION_STRING); - - wxMessageBox(msg, _T("About Minimal"), wxOK | wxICON_INFORMATION, this); + wxMessageBox(wxString::Format( + _T("Welcome to %s!\n") + _T("\n") + _T("This is the minimal wxWidgets sample\n") + _T("running under %s."), + wxVERSION_STRING, + wxGetOsDescription().c_str() + ), + _T("About wxWidgets minimal sample"), + wxOK | wxICON_INFORMATION, + this); }