[wxruby-users] Changing the color of buttons

Alex Fenton alex at pressure.to
Wed Apr 16 19:16:46 EDT 2008


Eric Rubin wrote:
>
> I’m having trouble changing the color of Buttons in WxRuby. I’m 
> calling set_background_colour (and set_foreground_colour) and the 
> calls return true, but the button remains gray.
>
Generally a major part of wxRuby's approach is that standard native 
controls like Wx::Button take the standard theme colours, depending on 
the user's desktop settings. You don't mention what platform you're 
using, but I'd expect that some desktops just won't permit non-standard 
colours to be used here.

If you could say more about what your application's trying to do here, 
perhaps we could suggest a better way of desiging a UI that will achieve 
it whilst still looking harmonious. There are several other options eg 
Wx::BitmapButton.

alex


More information about the wxruby-users mailing list