zeeh3
29th May 2006 12:57 UTC
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?
Afrow UK
29th May 2006 13:46 UTC
You need to redraw the control. Easiest way to do this is to hide the control and show it again (with ShowWindow).
-Stu
zeeh3
29th May 2006 14:40 UTC
Didn't work this way :(
Afrow UK
29th May 2006 15:58 UTC
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
zeeh3
29th May 2006 17:20 UTC
Still not working... I will use a checkbox without text and put a label on the right side. Thanks anyway.
zeeh3
1st June 2006 22:57 UTC
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.