Icks92
15th September 2009 11:06 UTC
Big problems with the Background color
I am so sorry but I have steel big problems with the background color, I attach 2 files to show you the problem, the SetCtlColors works but my background stay grey and I would like it be white, do you have more ideas than all that I tried ???
My licence page is a MUI_PAGE and the login page is a custom page
Icks92
15th September 2009 11:08 UTC
here the second one, thank you for your help.
Icks92
16th September 2009 18:29 UTC
I found the problem before I decide to add the license page, I had :
GetDlgItem $R7 $HWNDPARENT 1 ; Control the color of the external padding of the window
SetCtlColors $HWNDPARENT ${DlgBackgroundColor} ${DlgBackgroundColor}
# Control the Background Color
GetDlgItem $R8 $HWNDPARENT 0 ; Control the color of the contain of the window
SetCtlColors $R8 ${DlgBackgroundColor} ${DlgBackgroundColor}
# 1028 is the id of the branding text control
FindWindow $R9 "#32770" "" $HWNDPARENT ; Control the color of the branding text of the window
GetDlgItem $R9 $HWNDPARENT 1028
SetCtlColors $R9 ${DlgBackgroundColor} ${DlgBackgroundColor}
But with the new page MUI_PAGE_LICENSE I totaly lost the GetDlgItem $R8 $HWNDPARENT 0 and it's because of this line I lost that I can't paint the inside of the window in white. I managed to color the external border and the bottom part of the window but I totaly lost the inside, does anyone have an idea about it ?
Icks92
16th September 2009 18:52 UTC
Is there a way to by pass the license window to keep the my $HWNDPARENT 0 ??
How can I know what is the name (= number) of this part of the window ???
Please, help me I am totaly depress.
Thank you
Icks92
16th September 2009 19:08 UTC
When I add the license page before my custom page, NSIS consider the :
GetDlgItem $R7 $HWNDPARENT 1
GetDlgItem $R8 $HWNDPARENT 0
Like the same thing, it change the same thing (the inside border around the window) but when I don't add it, NSIS consider the two parameters like two different things (the inside border arround the window AND the inside of the window)
I don't have any solution to fix that.
dfranklin72
23rd September 2009 14:36 UTC
have a play arround with these.... you will have to see which control is relivant.
Function myOnGUIInit ; function to hide controls in the installer window and set colours
SetCtlColors $HWNDPARENT ffffff 000000
GetDlgItem $0 $HWNDPARENT 1
SetCtlColors $0 ffffff 000000
GetDlgItem $0 $HWNDPARENT 2
SetCtlColors $0 ffffff 000000
GetDlgItem $0 $HWNDPARENT 3
SetCtlColors $0 ffffff 000000
GetDlgItem $0 $HWNDPARENT 1004
SetCtlColors $0 ffffff 000000
GetDlgItem $0 $HWNDPARENT 1035
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1036
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1045
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1028
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1256
ShowWindow $0 ${SW_HIDE}
FunctionEnd
Icks92
23rd September 2009 16:58 UTC
OK thanks I try it immediatly !!!