Archive: Checkbox and XPStyle help


Checkbox and XPStyle help
  I need some help with XPStyle and checkbox text color in a custom page. Here is the code:


ReadINIStr $R0 "$PLUGINSDIR\test.ini" "Field 3" "HWND"

>SetCtlColors $R0 "FFCB2B" "062A55"
>CreateFont $R1 "Tahoma" 9 700
SendMessage $R0${WM_SETFONT} $R1 1
>
If XPStyle is OFF everything works fine, but if it is ON the text doesn't change its color, remaining black... why?

You need to redraw the control. Easiest way to do this is to hide the control and show it again (with ShowWindow).

-Stu


Didn't work this way :(


In which case:

System::Call `user32::RedrawWindow(i $HWND, i 0, i 0, i 0)`
Where $HWND is the handle for the inner dialog (IO dialog).

-Stu


Still not working... I will use a checkbox without text and put a label on the right side. Thanks anyway.


See http://forums.winamp.com/showthread....x+setctlcolors


Kichik, thanks for the help, but the background color works fine, the text color is the problem. Anyway, I solved this with checkbox(without text)+label. XPStyle ON maybe is taking control of its color like it does with the text in GroupBox.