X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/553d672896f77e6b51da81acee258faf204204ad..814028444d682b23af3809227cd485f4bebc1286:/samples/menu/menu.cpp diff --git a/samples/menu/menu.cpp b/samples/menu/menu.cpp index c4ce7f3673..3c8f97df67 100644 --- a/samples/menu/menu.cpp +++ b/samples/menu/menu.cpp @@ -41,14 +41,14 @@ // not all ports have support for EVT_CONTEXT_MENU yet, don't define // USE_CONTEXT_MENU for those which don't -#if defined(__WXMOTIF__) || defined(__WXPM__) || defined(__WXX11__) || defined(__WXMGL__) +#if defined(__WXMOTIF__) || defined(__WXPM__) || defined(__WXX11__) #define USE_CONTEXT_MENU 0 #else #define USE_CONTEXT_MENU 1 #endif -// this sample is usefull when new port is developed -// and usually new port has majority of flags turned off +// this sample is useful when a new port is developed +// and usually a new port has majority of flags turned off #if wxUSE_LOG && wxUSE_TEXTCTRL #define USE_LOG_WINDOW 1 #else @@ -59,7 +59,7 @@ #include "copy.xpm" #endif -#ifndef __WXMSW__ +#ifndef wxHAS_IMAGES_IN_RESOURCES #include "../sample.xpm" #endif @@ -365,8 +365,6 @@ bool MyApp::OnInit() frame->SetStatusText(wxT("Welcome to wxWidgets menu sample")); #endif // wxUSE_STATUSBAR - SetTopWindow(frame); - return true; } @@ -468,9 +466,7 @@ MyFrame::MyFrame() #if USE_LOG_WINDOW wxMenuItem *item = new wxMenuItem(fileMenu, Menu_File_ClearLog, wxT("Clear &log\tCtrl-L")); -#if wxUSE_OWNER_DRAWN || defined(__WXGTK__) item->SetBitmap(copy_xpm); -#endif fileMenu->Append(item); fileMenu->AppendSeparator(); #endif // USE_LOG_WINDOW @@ -710,7 +706,7 @@ void MyFrame::OnInsertMenu(wxCommandEvent& WXUNUSED(event)) wxString title; wxMenu *menu = CreateDummyMenu(&title); // Insert before the 'Help' menu - // Othewise repeated Deletes will remove the 'Test' menu + // Otherwise repeated Deletes will remove the 'Test' menu GetMenuBar()->Insert(4, menu, title); }