- 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(
+ _T("Welcome to %s!\n")
+ _T("\n")
+ _T("This is the minimal wxWidgets sample\n")
+ _T("running under %s."),
+ wxVERSION_STRING,
+ wxGetOsDescription().c_str()
+ ),
+ _T("About wxWidgets minimal sample"),
+ wxOK | wxICON_INFORMATION,
+ this);