Prev Previous Post   Next Post Next
Old 15th July 2005, 00:25   #1
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
Question 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:
code:

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:
code:

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?
Attached Files
File Type: zip installoptions_color.zip (1.5 KB, 112 views)
Comperio is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump