Archive: Change text color


Change text color
How can i change a label's color?I'm using installoptions,and i tried several SendMessage constants,but none worked.

Thx


http://nsis.sourceforge.net/Docs/Cha...html#4.9.14.15


How stupid i was,how could i miss that?

but it didn't work.This is my code.The messagebox shows a HWIND that appears to be valid.

Function CreateDialog
Push $R0
Push $R1

InstallOptions::initdialog /NOUNLOAD "$PLUGINSDIR\dialog.ini"
Pop $R0

ReadINIStr $R1 "$PLUGINSDIR\dialog.ini" "Field 6" "HWND"
MessageBox MB_OK $R1
SetCtlColors $R1 0xFF0000
InstallOptions::show
FunctionEnd

Try this:
SetCtlColors $R1 "0xFF0000" "transparent"