akatik
6th May 2010 08:43 UTC
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
6th May 2010 09:56 UTC
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
akatik
6th May 2010 09:58 UTC
Yes, thanks, that'll do. Looks like this problem exists since 2005...
Afrow UK
6th May 2010 10:00 UTC
No, it's not NSIS, it's (probably) existed since Windows XP came out.
Stu
akatik
6th May 2010 10:06 UTC
OK, thanks again for such fast replies.