- wxString msg;
- msg.Printf( _T("This is the about dialog of minimal sample.\n")
- _T("Welcome to %s"), wxVERSION_STRING);
-
- wxMessageBox(msg, "About Minimal", wxOK | wxICON_INFORMATION, this);
-}
-
-void MyFrame::OnSwapMenus(wxCommandEvent& WXUNUSED(event))
-{
- // Change the menu set around
- current_bar = 1 - current_bar;
- SetMenuBar(bar[current_bar]);
-}
-
-void MyFrame::OnReplaceMenu(wxCommandEvent& WXUNUSED(event))
-{
- wxMenuBar *curr_bar = bar[current_bar];
- wxMenu *menu = GetFileMenu(3);
- wxString title = "&File3";
-
- // Replace the first menu with the same thing
- int pos = 1;
- if (pos != wxNOT_FOUND)
- {
- curr_bar->Replace(pos, menu, title);
-// SetMenuBar(curr_bar);
- }
+ wxMessageBox(wxString::Format
+ (
+ "Welcome to %s!\n"
+ "\n"
+ "This is the minimal wxWidgets sample\n"
+ "running under %s.",
+ wxVERSION_STRING,
+ wxGetOsDescription()
+ ),
+ "About wxWidgets minimal sample",
+ wxOK | wxICON_INFORMATION,
+ this);