# Setting background color on a menu bar?

**URL:** <https://www.ruby-forum.com/t/setting-background-color-on-a-menu-bar/117414>\
**Category:** wxRuby\
**Created:** [October 16, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/setting-background-color-on-a-menu-bar/117414 "2007-10-16T17:41:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 16, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/setting-background-color-on-a-menu-bar/117414/1 "2007-10-16T17:41:28Z")

</div>

Thank you all for your help with my previous question.

Now I have a question on setting the background color  
of a menu bar: can it be done?

I’ve experimented thus:

```
menuBar = Wx::MenuBar.new()
menuBar.set_background_color( Wx::WHITE )

```

But alas, it seems to have no effect.

(I’m using wxruby-1.9.0-i386-mswin32 with ruby 1.8.6)

Thanks much!

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 16, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/setting-background-color-on-a-menu-bar/117414/2 "2007-10-16T18:54:07Z")

</div>

Hi

removed\_email\_address@domain.invalid wrote:

> Now I have a question on setting the background color  
> of a menu bar: can it be done?  
> Probably not, and you probably shouldn’t try. The colour of the menu bar  
> comes from the Windows theme, and this is what users will expect. On  
> modern OS’s the Menu Bar often isn’t have a flat colour - it might be a  
> gradient (XP) or a texture (OS X, brushed metal).

Perhaps if you say what you’re trying to communicate to an application’s  
user by changing the menu bar colour, we could think of another way more  
standard way of communicating the same message.

cheers  
alex
