Chiefboba
22nd April 2005 09:30 UTC
Change color of BrandingText ?
Hello All!
Is there a way of changing the textcolor of the Brandingtext ?
I searched the forum and help-files and found following example:
!define MUI_CUSTOMFUNCTION_GUIINIT myGUIInit
Function myGUIInit
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $HWNDPARENT 1028
SetCtlColors $0 FFFFFF 4C58ff
FunctionEnd
But whatever color values i take, only the background color of the Brandingtext is being changed (blue in this example). The text itself stays greyed out.
My boss wants the text to be black like all all other displayed strings. Is there any way to do this ?
Thanks for your time :)
Greets, Boba
kichik
22nd April 2005 10:54 UTC
If you're using the MUI, there are actually two branding text controls. Do the same for control #1256 too.
Chiefboba
25th April 2005 15:55 UTC
Thanks for your hint. I've tried it, but the behaviour of the control stays the same.
Anything else I could try ?
deguix
25th April 2005 18:49 UTC
Maybe that happens because the branding text control is disabled by default. You should make it enabled first (using ResHacker), then apply the colors.
Also, I think the code is a little wrong. See if this works (not tested):
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1028
SetCtlColors $0 FFFFFF 4C58ff
Yathosho
25th April 2005 20:45 UTC
is it also possible to override the color of the statusbar?
Chiefboba
26th April 2005 10:04 UTC
Hurray, it worked !
It was the WS_Disabled Flag. I changed it with "Ressource Hacker" in all EXE-Files I could find in the '\NSIS\Contrib\UIs' Directory and now the BrandingText is plain black :)
Script Code is:
Function myGUIInit
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $HWNDPARENT 1028
SetCtlColors $0 000000 transparent
FunctionEnd
Thanks for both Your help!
Boba
//Edit: Edited the script...
deguix
26th April 2005 10:50 UTC
Whoops! Didn't read the post...
kichik
26th April 2005 20:30 UTC
You can also enable the window using EnableWindow instead of changing the resources.