]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/menu/menu.cpp
added new text event macros description
[wxWidgets.git] / samples / menu / menu.cpp
index 58abd848dd2860b6b8dc20f90223a95a2821d508..0751bad75db37bedae39e525f0d1e3a7d42096c5 100644 (file)
@@ -28,6 +28,7 @@
     #include <wx/app.h>
     #include <wx/frame.h>
     #include <wx/menu.h>
     #include <wx/app.h>
     #include <wx/frame.h>
     #include <wx/menu.h>
+    #include <wx/msgdlg.h>
     #include <wx/log.h>
     #include <wx/textctrl.h>
 #endif
     #include <wx/log.h>
     #include <wx/textctrl.h>
 #endif
 
 #include "copy.xpm"
 
 
 #include "copy.xpm"
 
-#ifdef __WXUNIVERSAL__
-    #include "wx/univ/theme.h"
-
-    WX_USE_THEME(win32);
-    WX_USE_THEME(gtk);
-#endif // __WXUNIVERSAL__
-
 // ----------------------------------------------------------------------------
 // classes
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // classes
 // ----------------------------------------------------------------------------
@@ -430,14 +424,9 @@ void MyFrame::OnClearLog(wxCommandEvent& WXUNUSED(event))
 
 void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 {
 
 void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 {
-#ifdef __WXUNIVERSAL__
-    // wxMessageBox not implemented yet
-    wxLogMessage("wxWindows menu sample\n© 1999-2001 Vadim Zeitlin");
-#else
     (void)wxMessageBox("wxWindows menu sample\n© 1999-2001 Vadim Zeitlin",
                        "About wxWindows menu sample",
                        wxICON_INFORMATION);
     (void)wxMessageBox("wxWindows menu sample\n© 1999-2001 Vadim Zeitlin",
                        "About wxWindows menu sample",
                        wxICON_INFORMATION);
-#endif
 }
 
 void MyFrame::OnDeleteMenu(wxCommandEvent& WXUNUSED(event))
 }
 
 void MyFrame::OnDeleteMenu(wxCommandEvent& WXUNUSED(event))