X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/763163a80ae0d5a0684633e72f928302578c1214..40730ad17db78193611389a3d12db772b28eac31:/samples/minimal/minimal.cpp diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index cd34c36f20..fb8f7212e3 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -16,10 +16,10 @@ // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- - + // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" - + #ifdef __BORLANDC__ #pragma hdrstop #endif @@ -99,7 +99,6 @@ enum BEGIN_EVENT_TABLE(MyFrame, wxFrame) EVT_MENU(Minimal_Quit, MyFrame::OnQuit) EVT_MENU(Minimal_About, MyFrame::OnAbout) - EVT_BUTTON(Minimal_About, MyFrame::OnAbout) END_EVENT_TABLE() // Create a new application object: this macro will allow wxWidgets to create @@ -168,11 +167,6 @@ MyFrame::MyFrame(const wxString& title) SetMenuBar(menuBar); #endif // wxUSE_MENUS - wxSizer * const sizer = new wxBoxSizer(wxVERTICAL); - sizer->Add(new wxButton(this, wxID_ABOUT)); - sizer->Add(new wxButton(this, wxID_OPEN)); - SetSizer(sizer); - #if wxUSE_STATUSBAR // create a status bar just for fun (by default with 1 pane only) CreateStatusBar(2); @@ -191,9 +185,6 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) { - wxGetTextFromUser("Your text?"); - -#if 0 wxMessageBox(wxString::Format ( "Welcome to %s!\n" @@ -206,5 +197,4 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) "About wxWidgets minimal sample", wxOK | wxICON_INFORMATION, this); -#endif }