[wxruby-users] setting button colour on 1.9.5

Alex Fenton alex at pressure.to
Tue Jul 29 06:40:15 EDT 2008


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





More information about the wxruby-users mailing list