Archive: Setting label colors


Setting label colors
I've got a custom InstallOptions page that I'm trying to use with MUI which contains a label control that I'm trying to set the text color and font. I'm using SendMessage to change the font and it works fine. However, I can't seem to get the color to change.

Just to illustrate, I created a mock-up that just to see if I can get the color to work.

Here's my display function to in theory change the label text to red:


Function CustomPage
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioB.ini"
pop $0
GetDlgItem $1 $0 1200
SendMessage $1 ${WM_CTLCOLOR} "FF0000" 0
!insertmacro MUI_INSTALLOPTIONS_SHOW
FunctionEnd


Unfortunatly, this doesn't work. I've also tried replacing the SendMessage line with this:

SetCtlColors $1 FF0000


But no luck there, either.

The full sample script and installoptions file are attached if anyone needs to see them.

Any ideas what I may be doing wrong?:confused:

Your uploaded InstallOptions.nsi is the same as the original.

This is an example that changes colours:
http://nsis.sourceforge.net/wiki/File:IoColors.zip

-Stu


D'OH! You're right. (I made a scaled-down version called 'InstallOptions-a.nsi' for an example, but must have zipped the original instead of the one I built!)

Oh well at least you knew what I was talking about...

I think this is going to work nicely. Thanks for the reply, Stu!