diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-01-12 03:36:00 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-01-12 03:36:00 +0200 |
commit | da28de2407e3e8590ae3e766077cbd6933b53b74 (patch) | |
tree | f3fd1c3b770947736d5df7fc0816e02e32e02ec8 | |
parent | 59b7fa8ed3e8506cc44491873aa79a11b4db9c3d (diff) | |
download | meson-da28de2407e3e8590ae3e766077cbd6933b53b74.zip meson-da28de2407e3e8590ae3e766077cbd6933b53b74.tar.gz meson-da28de2407e3e8590ae3e766077cbd6933b53b74.tar.bz2 |
Some tweaks.
-rw-r--r-- | test cases/frameworks/9 wxwidgets/wxprog.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test cases/frameworks/9 wxwidgets/wxprog.cpp b/test cases/frameworks/9 wxwidgets/wxprog.cpp index 89a7b5a..8d289c8 100644 --- a/test cases/frameworks/9 wxwidgets/wxprog.cpp +++ b/test cases/frameworks/9 wxwidgets/wxprog.cpp @@ -7,7 +7,7 @@ EVT_MENU(wxID_ABOUT, MyFrame::OnAbout) wxEND_EVENT_TABLE() bool MyApp::OnInit() { - MyFrame *frame = new MyFrame( "Hello World", wxPoint(50, 50), wxSize(450, 340) ); + MyFrame *frame = new MyFrame("Hello World", wxPoint(50, 50), wxSize(450, 340)); frame->Show( true ); return true; } @@ -22,11 +22,11 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) wxMenu *menuHelp = new wxMenu; menuHelp->Append(wxID_ABOUT); wxMenuBar *menuBar = new wxMenuBar; - menuBar->Append( menuFile, "&File" ); - menuBar->Append( menuHelp, "&Help" ); - SetMenuBar( menuBar ); + menuBar->Append(menuFile, "&File"); + 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 |