|
|
|
@ -26,7 +26,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) |
|
|
|
|
menuBar->Append(menuHelp, "&Help"); |
|
|
|
|
SetMenuBar(menuBar); |
|
|
|
|
CreateStatusBar(); |
|
|
|
|
SetStatusText( "Welcome to wxWidgets!" ); |
|
|
|
|
SetStatusText("This is status." ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MyFrame::OnExit(wxCommandEvent& event) { |
|
|
|
@ -34,12 +34,11 @@ void MyFrame::OnExit(wxCommandEvent& event) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MyFrame::OnAbout(wxCommandEvent& event) { |
|
|
|
|
wxMessageBox( "This is a wxWidgets' Hello world sample", |
|
|
|
|
"About Hello World", wxOK | wxICON_INFORMATION ); |
|
|
|
|
wxMessageBox( "Some text", wxOK | wxICON_INFORMATION ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MyFrame::OnHello(wxCommandEvent& event) { |
|
|
|
|
wxLogMessage("Hello world from wxWidgets!"); |
|
|
|
|
wxLogMessage("Some more text."); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
|