Archive: Changing install page colors


Changing install page colors
Hi,

Does anybody know how I can change the grey areas of my install page (attached) to white?

I seem to have trouble getting the HWND for the progress bar and the tiny little square that appears next to the separator (circled in red).

Thanks.


The one the bottom is where the branding text shows. Make sure you set the color for both controls, 1256 and 1028.

To get the HWND of the internal dialog, use the following in the show callback function of every page.

FindWindow $0 "#32770" "" $HWNDPARENT

1256 works great to make the branding text background white.

How/where do I use 1028 though? I tried:

GetDlgItem $R0 $HWNDPARENT 1028
SetCtlColors $R0 00000 transparent

and

FindWindow $R1 "#32770" "" $HWNDPARENT
GetDlgItem $R0 $R1 1028
SetCtlColors $R0 FFFFFF transparent

in the section and in the callback function for the instfiles page.


Ah, I actually meant the grey background the progress bar is on...


The FindWindow commands gets you the HWND of the internal dialog. That one has different controls for each pages with different control identifiers. 1028 is on the main dialog, not the inner dialog. The progress bar is in the inner dialog. Edit the resources, find the inner dialog that you wish to change, get the control identifier and use it with GetDlgItem after you use FindWindow.


I placed:

FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $1 $0 1004
SetCtlColors $1 FFFFFF FFFFFF

FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $1 $0 1006
SetCtlColors $1 FFFFFF FFFFFF

and

FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $1 $0 1016
SetCtlColors $1 FFFFFF FFFFFF

in the instfiles callback. None of them changed the color.

If I put in a debug MessageBox statement it does appear all white and after clicking okay the progress bar/grey background appears. Am I calling it from the right place?


Attach an example script. I don't understand exactly what you're doing. Which callback have you used? You should be using the show callback.


I did. The code is in this thread:

http://forums.winamp.com/showthread....hreadid=259531

Thanks for the help. It's working now.


Same problem but usinf MUI
Hello,

I am trying to do the same thing but I use "!insertmacro MUI_PAGE_INSTFILES" to my install page, so I can't find where I have to put this peace of code to color the background.

Does anybody can tell me how to proceed ?

Thank you.


If I recall correctly, I couldn't do it when using MUI. The code that I used was in this thread:

http://forums.winamp.com/showthread....hreadid=259531


Thank you very much for your answer, but it is the code that I am trying, but it doesn't works.

The strip of color above the progress bar changes color but not the big part down.

I disperate ...


yes, you can't use !insertmacro MUI_PAGE_INSTFILES'. you have to use

Page instfiles "" ShowInst

instead.

where the showinst function is in the other thread.

that worked for me...


OK thank you, I replaced MUI_PAGE_INSTFILES and it works.

But now my branding text appears on a grey background and not a white one ...