|
|
#1 |
|
Junior Member
Join Date: Jan 2005
Posts: 5
|
MUI: change header text color for a page
Hi,
I'd like to change the color of header text for a *certain* page, how can I do that? i.e. !define MUI_PAGE_HEADER_TEXT "some text" !define MUI_PAGE_HEADER_SUBTEXT "some subtext" display "some text" in red, display "some subtext" in green, etc. |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Use GetDlgItem and SetCtlColors. To find out the item id, use Resource Hacker. Search the forum for GetDlgItem, SetCtlColors and/or Resource Hacker and you should be able to find some examples.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Feb 2014
Posts: 7
|
Quote:
![]() For example, in the Components Page: code: I also need to change the text color in Welcome Page: "Welcome to ... Setup" "Setup will guide you through the installation..." But I wasn't able to find the resource numbers for these text blocks. I used Resource Hacker, and found many Dialogs listed there, but it seems Welcome Page isn't there. Is it possible to do what I want? Can it be done just knowing the codes, or a different approach is needed? Thanks and best regards. |
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
The Welcome page is a custom page, you can use WinSpy++ at run-time to find the control id. If you are using MUI2 you can look for the correct variable name in the MUI source or for MUI1 you might be able to read the HWND from the .ini.
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Feb 2014
Posts: 7
|
Hi Anders, thank you for your timely response.
Looking to Modern UI\ioSpecial.ini, I wasn't able to figure out which are the resource numbers for these text blocks. The .INI file is: Quote:
Thanks and best regards. Last edited by orhuidobro; 13th November 2014 at 19:38. Reason: Syntax error |
|
|
|
|
|
|
#6 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
The HWND only exists at run-time:
Quote:
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Feb 2014
Posts: 7
|
Thank you Anders!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|