Page 1 of 1

Menubar - Reg

Posted: Wed Jan 21, 2009 7:35 am
by rajan_m
Hi :) ,

How to set background colour of menubar :?: .
I tried wxWindow::SetBackgroundColour() but it doesn't work :o .

Thanks in advance,

Posted: Wed Jan 21, 2009 9:22 pm
by Auria
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 : ... wxflatmenu

Posted: Tue Jan 27, 2009 7:01 am
by rajan_m
Sorry For Late Reply :( ,

wxFlateMenu is what i want Exactly :D .

I personaly thank :) Eranif.