reverted yet another accidental commit of testing code in r57505

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-23 00:35:18 +00:00
parent 2283800b2e
commit 28f12ffb86

View File

@@ -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
}