Archive: bgcolor in custom page


bgcolor in custom page
Hi all,

I've a problem with the bgcolor on my custom pages.
I've choosen a blue color for ${MUI_BGCOLOR}.
My welcome page is ok and is blue for the background color.
In my custom pages, the cbackground color is blue if i use the macro MUI_INSTALLOPTIONS_DISPLAY "drive.ini".
But I must use the macro MUI_INSTALLOPTIONS_DISPLAY_RETURN "drive.ini".
.... and the bgcolor is grey !!!!

I really don't understand...

I tried to insert the following code after the display_return macro ,but it doesn't work anymore ...
Pop $HWND ;HWND of dialog

;Apply the Background color at the page
SetCtlColors $HWND "" "${MUI_BGCOLOR}"

;Apply the right text color and background color at all the field
GetDlgItem $0 $HWND 1200
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}
GetDlgItem $0 $HWND 1201
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}
GetDlgItem $0 $HWND 1202
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}
GetDlgItem $0 $HWND 1203
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}

Thanks a lot for your answers


You need to use MUI_INSTALLOPTIONS_INITDIALOG and MUI_INSTALLOPTIONS_SHOW or MUI_INSTALLOPTIONS_SHOW_RETURN, if you want to set the colors. MUI_INSTALLOPTIONS_DISPLAY and MUI_INSTALLOPTIONS_DISPLAY_RETURN give control back to your code only once the custom page is destroyed. Obviously, that's too late to set the colors.


Thanks a lot for your answer. I'm going to try.