Archive: Colored Text on Finish Page


Colored Text on Finish Page
Hello all.

Awhile back I posted this thread asking how to set lines of text to different colors on the Finish Page. The answer was over my head at the time, but I am to the point now where I basically understand how to do this.

So...I added "MUI_PAGE_CUSTOMFUNCTION_PRE" before my "!insertmacro MUI_PAGE_FINISH" command, and in the PRE function I'm editing the ioSpecial.ini to add separate controls (labels) so I can color code them. The editing of the ioSpecial.ini works just fine, however I'm having some problem with the coloring.

After I edit the ini, I also have the following code in the Pre FinishPage Function:


!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioSpecial.ini"
Pop $R0 ;HWND
GetDlgItem $R1 $R0 1204 ;Setting Field 5
SetCtlColors $R1 FF0000 Transparent ;to Red

The problem is that the MUI_INSTALLOPTIONS_INITDIALOG command above sets the whole background of the Finish Page from White to Gray. And without that command the text never turns color (to red).

Help! Thanks all.
Jnuw

Here is what I'm talking about, clearly I'm not doing this right, I also just noticed that the formatting of the font in the top is also messed up.

Without the !insertmacro MUI_INSTALLOPTIONS_INITDIALOG line, I get good fonts and background, but no color:
http://webpages.charter.net/orum/2.JPG

And with that command, I get the colored text, but the formatting is all messed up.
http://webpages.charter.net/orum/4.JPG



Function ShowFinishPage
GetDlgItem $MUI_TEMP1 $MUI_HWND 1204 ;ID for the 6th InstallOptions control
SetCtlColors $MUI_TEMP1 "" "${MUI_BGCOLOR}"
FunctionEnd


Try that and you can just use $MUI_HWND to get the handle for the window no need to pop it.

Also, between initdialog and show:


SetCtlColors $MUI_HWND "color" "color"

Thanks guys. mscoville, your code and its location worked perfectly!