Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 24th November 2006, 11:52   #1
Treewyrm
Junior Member
 
Join Date: Nov 2006
Posts: 5
MUI header title color

Not sure if this was asked earlier. I'm trying to change header title text color to white (while keeping subtitle black, I have underlying header image), but so far I was out of luck. Stuck trying to figure out how to change MUI dialog elements like that. Thanks.
Treewyrm is offline   Reply With Quote
Old 24th November 2006, 13:12   #2
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
Set MUI_PAGE_CUSTOMFUNCTION_PRE define before inserting first page macro.
code:
!define MUI_PAGE_CUSTOMFUNCTION_PRE "changecolor"


And use following code to change color:
code:
Function "changecolor"
GetDlgItem $r3 $HWNDPARENT 1037
SetCtlColors $r3 0xFFFFFF "${bg_color}"
FunctionEnd

glory_man is offline   Reply With Quote
Old 24th November 2006, 15:28   #3
Treewyrm
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks a lot!
Treewyrm is offline   Reply With Quote
Old 31st January 2007, 05:37   #4
Takeshi
Junior Member
 
Join Date: Dec 2006
Location: Malaysia
Posts: 28
Hello glory_man
i hope ur still around
i also would like to ask the same question regarding the text color of header
im trying with,

Function "changecolor"
GetDlgItem $r3 $HWNDPARENT 1037
SetCtlColors $r3 0xFFFFFF transparent
GetDlgItem $r3 $HWNDPARENT 1038
SetCtlColors $r3 0xFFFFFF transparent
Function End

where, i defined this before the page macro

!define MUI_PAGE_CUSTOMFUNCTION_PRE "changecolor"

and,

!define MUI_UNPAGE_CUSTOMFUNCTION_PRE "changecolor"

for uninstall page.

BUT, i dont know why, it only applies to install pages only, not with the uninstall page
Hope can get some idea from u, or anyone else who is willing to help me
thank you guys!
Takeshi is offline   Reply With Quote
Old 31st January 2007, 06:18   #5
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Quote:
BUT, i dont know why, it only applies to install pages only, not with the uninstall page
Hope can get some idea from u, or anyone else who is willing to help me
1st place you'd find help regarding to your script is NSIS documentation, for instance, you may want to read about functions in general, and uninstaller functions prefix.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump