- // Make a panel with a message
- wxPanel *panel = new wxPanel(frame, -1, wxPoint(0, 0), wxSize(400, 200), wxTAB_TRAVERSAL);
-
- wxString msgString;
- int num = 2;
- if ( num == 0 )
- msgString = wxTString("you've probably entered an invalid number.");
- else if ( num == 9 ) // this message is not translated
- msgString = wxTString("You've found a bug in this program!");
- else if ( num != 17 )
- msgString = wxTString("bad luck! try again...");
- else {
- msgString = wxTString("congratulations! you've won. Here is the magic phrase:");
- }
-
- wxStaticText *msg = new wxStaticText(panel, 311, msgString, wxPoint(10, 10), wxSize(-1, -1),
- 0);
-