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. In searching the documentation it seems that the problem might be related to should_inherit_colours, which can prohibit color changes, but the documentation is confusing. (Doesn't specify whether should_inherit_colours should return true or false.) Any suggestions? Eric
on 16.04.2008 21:11
on 17.04.2008 01:17
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