Archive: Radiobutton Text Color


Radiobutton Text Color
Hi All,
I'm trying to change appearance of radiobutton in NSIS custom page created by NSDialogs. But such code:
SetCtlColors $CurrRadio 0xFF0000 0x00FF00
changes only background color to green, text color stays black instead of specified value. What am I doing wrong?

I found out that if line:
XPStyle on
specified, then text color is not changed. Otherwise it is changed...


This is a problem with visual styles. You can either:
1. owner draw it using a plug-in (painful) or
2. use a static label for the radio button text (you may also want to assign an OnClick event on the label and in it send BM_CLICK to the radio button)

Stu


Yes, thanks, that'll do. Looks like this problem exists since 2005...


No, it's not NSIS, it's (probably) existed since Windows XP came out.

Stu


OK, thanks again for such fast replies.