Help with the usage of "SetCtlColors"
Can someone point me about how to use the SetCtlColors for text and background colors?
I read the doc, but still with :igor:
Archive: Help with the usage of "SetCtlColors"
Help with the usage of "SetCtlColors"
Can someone point me about how to use the SetCtlColors for text and background colors?
I read the doc, but still with :igor:
Syntax:
SetCtlColors HWND TEXTCOLOR BGCOLOR
Use hexadecimal colors like HTML (without the #).
Well I got this:
!define BGcolor "587CB8" ;Color del TOP para BG
!define FGcolor "9C9C9C" ;Color de las letras (FONT)
;...
!define MUI_PAGE_CUSTOMFUNCTION_PRE "DirColor"
!insertmacro MUI_PAGE_DIRECTORY
;...
Function "DirColor"
GetDlgItem $0 $HWNDPARENT 1019
SetCtlColors $0 ${FGcolor} ${BGcolor}
FunctionEnd
Put it in show not pre.
Done that... but no.
That's only the part that left to paint. I wanna paint the field
wich contains the installation path.
$HWNDPARENT is not the parent of 1019. Use:
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1019
SetCtlColors $0 FF0000 00FF00
yay! It works :) Thanks, dude.