Ruby Forum wxRuby > setting button colour on 1.9.5

Posted by Irlweg, Franz (ZNT) (Guest)
on 28.07.2008 11:57
(Received via mailing list)
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
</PRE><html><P><SPAN style="FONT-SIZE: 8pt"><FONT color=#000000><FONT 
face=Arial>
This communication and any files or attachments transmitted with it may 
contain information that is copyrighted or confidential and exempt from 
<br>  disclosure under applicable law. It is intended solely for the use 
of the individual or the entity to which it is addressed. <br>
If you are not the intended recipient, you are hereby notified that any 
use, dissemination, or copying of this communication is strictly 
prohibited. <br>
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. <br>
Thank you for your cooperation. Please contact your local IT staff or 
email <a 
href="mailto:info@siltronic.com?subject=Disclaimer">info@siltronic.com</a> 
if you need assistance.
<br>&nbsp;<br>
Siltronic AG, Sitz M&uuml;nchen, Hanns-Seidel-Platz 4, 81737 
M&uuml;nchen, Germany. Amtsgericht M&uuml;nchen HRB 150884
<br>
Vorstand: Wilhelm Sittenthaler (Vorsitz), Gerhard Brehm, Paul Lindblad, 
Joachim Manke, Michael Peterat. Vorsitzender des Aufsichtsrats: 
Peter-Alexander Wacker
</FONT></FONT></SPAN></P></html>
Posted by Alex Fenton (Guest)
on 29.07.2008 12:42
(Received via mailing list)
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