Menubar - Reg Topic is solved

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
rajan_m
Knows some wx things
Knows some wx things
Posts: 39
Joined: Tue Jan 20, 2009 10:37 am
Location: chennai

Menubar - Reg

Post by rajan_m » Wed Jan 21, 2009 7:35 am

Hi :) ,

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

Thanks in advance,
Every exit is an entry somewhere else!

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Wed Jan 21, 2009 9:22 pm

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

rajan_m
Knows some wx things
Knows some wx things
Posts: 39
Joined: Tue Jan 20, 2009 10:37 am
Location: chennai

Post by rajan_m » Tue Jan 27, 2009 7:01 am

Sorry For Late Reply :( ,

wxFlateMenu is what i want Exactly :D .

I personaly thank :) Eranif.
Every exit is an entry somewhere else!

Post Reply