开发者

How can I change the foreground color of a wxRadioButton?

The method wxRadioButton::SetForegroundColour does not work (see http://trac.wxwidgets开发者_开发问答.org/ticket/10137).

Does anybody knows how to make it work? I don't understand the drawing process of wxWidgets controls, so if someone can provide pieces of code, it would be very appreciated.

Thanks a lot!


wxWidgets uses the native radio button control, so if you happen to be programming for Windows (using wxWidgets), the colors in most controls and dialog boxes are "inherited" from the colors defined in the Appearance tab of "Display Properties". If you must deviate from the system dictated themes, you may need to create your own radio button class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜