Hi ,
How to set background colour of menubar .
I tried wxWindow::SetBackgroundColour() but it doesn't work .
Thanks in advance,
Menubar - Reg Topic is solved
Menubar - Reg
Every exit is an entry somewhere else!
On what platform?
Under all major platforms, wxWidgets uses the native menubar component. In this case, the menubar is rendered by the system so you may not be able to change the color. If your system allows custom colors, you might be able to specify it in a platform-specifc way.
You might be able to override the paint event, but i didn't test it so i'm not sure. Otherwise, if you want to customize look, you might want to roll your own implementation. There is one here : http://forums.wxwidgets.org/viewtopic.p ... wxflatmenu
Under all major platforms, wxWidgets uses the native menubar component. In this case, the menubar is rendered by the system so you may not be able to change the color. If your system allows custom colors, you might be able to specify it in a platform-specifc way.
You might be able to override the paint event, but i didn't test it so i'm not sure. Otherwise, if you want to customize look, you might want to roll your own implementation. There is one here : http://forums.wxwidgets.org/viewtopic.p ... wxflatmenu