Any reason why we #if the menuitem bitmap code in the menu sample? For now just adding wxGTK in addition to
wxUSE_OWNER_DRAWN case, for the cases where bitmaps are to be set... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
#define USE_LOG_WINDOW 0
|
#define USE_LOG_WINDOW 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_OWNER_DRAWN || defined(__WXGTK__)
|
||||||
#include "copy.xpm"
|
#include "copy.xpm"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -381,7 +381,7 @@ MyFrame::MyFrame()
|
|||||||
#if USE_LOG_WINDOW
|
#if USE_LOG_WINDOW
|
||||||
wxMenuItem *item = new wxMenuItem(fileMenu, Menu_File_ClearLog,
|
wxMenuItem *item = new wxMenuItem(fileMenu, Menu_File_ClearLog,
|
||||||
_T("Clear &log\tCtrl-L"));
|
_T("Clear &log\tCtrl-L"));
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_OWNER_DRAWN || defined(__WXGTK__)
|
||||||
item->SetBitmap(copy_xpm);
|
item->SetBitmap(copy_xpm);
|
||||||
#endif
|
#endif
|
||||||
fileMenu->Append(item);
|
fileMenu->Append(item);
|
||||||
|
Reference in New Issue
Block a user