Skip to content
⌘ NSIS Forum Archive

Radiobutton Text Color

5 posts

akatik#edited

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...
Afrow UK#
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