@@ -7,7 +7,7 @@ EVT_MENU(wxID_ABOUT, MyFrame::OnAbout)
7
7
wxEND_EVENT_TABLE()
8
8
9
9
bool MyApp::OnInit() {
10
- MyFrame *frame = new MyFrame ( " Hello World" , wxPoint (50 , 50 ), wxSize (450 , 340 ) );
10
+ MyFrame *frame = new MyFrame (" Hello World" , wxPoint (50 , 50 ), wxSize (450 , 340 ));
11
11
frame->Show ( true );
12
12
return true ;
13
13
}
@@ -22,24 +22,23 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
22
22
wxMenu *menuHelp = new wxMenu;
23
23
menuHelp->Append (wxID_ABOUT);
24
24
wxMenuBar *menuBar = new wxMenuBar;
25
- menuBar->Append ( menuFile, " &File" );
26
- menuBar->Append ( menuHelp, " &Help" );
27
- SetMenuBar ( menuBar );
25
+ menuBar->Append (menuFile, " &File" );
26
+ menuBar->Append (menuHelp, " &Help" );
27
+ SetMenuBar (menuBar);
28
28
CreateStatusBar ();
29
- SetStatusText ( " Welcome to wxWidgets! " );
29
+ SetStatusText (" This is status. " );
30
30
}
31
31
32
32
void MyFrame::OnExit (wxCommandEvent& event) {
33
33
Close ( true );
34
34
}
35
35
36
36
void MyFrame::OnAbout (wxCommandEvent& event) {
37
- wxMessageBox ( " This is a wxWidgets' Hello world sample" ,
38
- " About Hello World" , wxOK | wxICON_INFORMATION );
37
+ wxMessageBox ( " Some text" , wxOK | wxICON_INFORMATION );
39
38
}
40
39
41
40
void MyFrame::OnHello (wxCommandEvent& event) {
42
- wxLogMessage (" Hello world from wxWidgets! " );
41
+ wxLogMessage (" Some more text. " );
43
42
}
44
43
45
44
#if 0
0 commit comments