Why does wxMenu look like something dragged out of Win95 when I use images?
I am tempted to use wxFlatMenu, but there must be some way to get a modern look. I mean: that's native on XP and Vista.
Seems like it is using some ancient win95 code under msw.
I can't figure out where the drawing is happening, is it in ownerdrawn?
Why hasn't people complained about it?
I've seen some posts in the past about the philosophy behind wxWidgets, but now I see that Ribboncontrol is in the list of suggested summer of code projects..
Why? All I need is a good looking menu.
Any ideas?
wxMenu looks bad Topic is solved
-
- Experienced Solver
- Posts: 72
- Joined: Fri Feb 20, 2009 7:13 pm
- Location: $(#wx)\src
Re: wxMenu looks bad
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?jacmoe wrote:Why does wxMenu look like something dragged out of Win95 when I use images?
I am tempted to use wxFlatMenu, but there must be some way to get a modern look. I mean: that's native on XP and Vista.
Seems like it is using some ancient win95 code under msw.
I can't figure out where the drawing is happening, is it in ownerdrawn?
Why hasn't people complained about it?
I've seen some posts in the past about the philosophy behind wxWidgets, but now I see that Ribboncontrol is in the list of suggested summer of code projects..
Why? All I need is a good looking menu.
Any ideas?
Re: wxMenu looks bad
That's comforting to know.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?
<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"));
This is my preprocessor defines:
I am linking to:WIN32;_DEBUG;_WINDOWS;__WXMSW__;__WXDEBUG__
And, did I mention that it's in Vista?comctl32.lib rpcrt4.lib winmm.lib wsock32.lib wxmsw29ud_propgrid.lib
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>
Re: wxMenu looks bad
That's not true.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?
I see the exact same problem. Add a bitmap to a menu and it looks like stoneage (wxMSW 2.8.9, VC2008, Vista X64 with Fixpack1).
Fixed!
Vadim and I fixed the issue:
http://www.nabble.com/wxMenu-with-bitma ... #a22640176
This is really great.
Vadim and I fixed the issue:
http://www.nabble.com/wxMenu-with-bitma ... #a22640176
This is really great.