computerquip wrote:People don't complain about it because it's not what they get from wxWidgets. Could you show us a picture and possible the way your compiling your file?
That's comforting to know.
<edit> I did link to a picture - do you not see it? </edit>
Here's how I do the menu:
Code: Select all
menuBar = new wxMenuBar;
// File menu
mFileMenu = new wxMenu;
// New Scene
wxMenuItem* newMenuItem = new wxMenuItem(mFileMenu, ID_TBFILENEW, wxT("&New Scene"), wxT("New Scene"), wxITEM_NORMAL);
wxBitmap newBitmap(itemFrame1->GetBitmapResource(wxT("16x16/filenew.png")));
newMenuItem->SetBitmap(newBitmap);
mFileMenu->Append(newMenuItem);
// Open Scene
wxMenuItem* openMenuItem = new wxMenuItem(mFileMenu, ID_TBFILEOPEN, wxT("&Open Scene"), wxT("Open Scene"), wxITEM_NORMAL);
wxBitmap openBitmap(itemFrame1->GetBitmapResource(wxT("16x16/fileopen.png")));
openMenuItem->SetBitmap(openBitmap);
mFileMenu->Append(openMenuItem);
...
...
menuBar->Append(mFileMenu, wxT("&File"));
I am working from a vanilla SVN trunk wxWidgets (2.9), using default settings.
This is my preprocessor defines:
WIN32;_DEBUG;_WINDOWS;__WXMSW__;__WXDEBUG__
I am linking to:
comctl32.lib rpcrt4.lib winmm.lib wsock32.lib wxmsw29ud_propgrid.lib
And, did I mention that it's in Vista?
Let me know if you need to know more..
What's weird is that the menus without bitmaps looks just fine..
<edit2>
Could it be that png is unsupported as native bitmap in windows?
</edit2>