# Setting button colour on 1.9.5

**URL:** <https://www.ruby-forum.com/t/setting-button-colour-on-1-9-5/144294>\
**Category:** wxRuby\
**Created:** [July 28, 2008, 11:57am UTC](https://www.ruby-forum.com/t/setting-button-colour-on-1-9-5/144294 "2008-07-28T11:57:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3d9bf3/32.png) [@IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/u/IrlwegS_Franz_SZNT)\
**Post date:** [July 28, 2008, 11:57am UTC](https://www.ruby-forum.com/t/setting-button-colour-on-1-9-5/144294/1 "2008-07-28T11:57:31Z")

</div>

Hi all,

i’m working with wxruby 1.9.5 on windows.  
Trying to set the background colour for a button does not work!

Thanks for any help,  
Franz

This communication and any files or attachments transmitted with it may  
contain information that is copyrighted or confidential and exempt from  
   
 disclosure under applicable law. It is intended solely for the use  
of the individual or the entity to which it is addressed.   
  
If you are not the intended recipient, you are hereby notified that any  
use, dissemination, or copying of this communication is strictly  
prohibited.   
  
If you have received this communication in error, please notify us at  
once so that we may take the appropriate action and avoid troubling you  
further.   
  
Thank you for your cooperation. Please contact your local IT staff or  
email [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid?subject=Disclaimer)  
if you need assistance.  
   
&nbsp;  
  
Siltronic AG, Sitz München, Hanns-Seidel-Platz 4, 81737  
München, Germany. Amtsgericht München HRB 150884  
   
  
Vorstand: Wilhelm Sittenthaler (Vorsitz), Gerhard Brehm, Paul Lindblad,  
Joachim Manke, Michael Peterat. Vorsitzender des Aufsichtsrats:  
Peter-Alexander Wacker

---

<div class="post-metadata">

**Author:** ![IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3d9bf3/32.png) [@IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/u/IrlwegS_Franz_SZNT)\
**Post date:** [July 29, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/setting-button-colour-on-1-9-5/144294/2 "2008-07-29T12:42:16Z")

</div>

Hi Franz

Irlweg, Franz (ZNT) wrote:

> i’m working with wxruby 1.9.5 on windows.  
> Trying to set the background colour for a button does not work!

The background colour for a standard OS button will come from the user’s  
desktop theme. Because these are native widgets, on most desktops this  
standard colour can’t be changed - this is a feature not a bug 😉 as it  
keeps applications consistent with respective GUI standards.

If you really must have multi-coloured buttons, use Wx::BitmapButton.

hth  
alex
