Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 20th May 2003, 15:51   #1
tiga
Junior Member
 
Join Date: May 2003
Posts: 3
Question Changing MUI_FONT_HEADER color.

Hey guys,

VERY impressive, solid installer. My hat goes to you.

Is it at all possible to change the color of the header font in MODERN_UI? I would like to be able to make it white. Also, can the header text be moved/aligned in any way, whether through a ResHacker or, perhaps, in a simpler fasion through the installer script?

And last, is there any forum discussion/link regarding the use of the different MODERN_UIs, for e.g sdbarker_tiny. I'd like to make a patch installer combined with VPatch, and minimal user interaction.

Hope I didn't overwhelm you with questions.
Thank you in advance!

Tigran
tiga is offline   Reply With Quote
Old 20th May 2003, 16:02   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
I don't think it is possible to change the colours of text on NSIS dialogs as yet, but I know that Kichik could code it in easily (it's on the ToDo list)

The best and probably only way to move the text over, would be to put in some spaces
I may be wrong though! (I've never attempted to ask the question before)

For the sdbarker_tiny, I like to use mostly custom pages on it. Apart from that, I'm not sure what you need!

Anyway, here is one thing I did last year which shows off the flexibility of NSIS!


-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 20th May 2003, 16:16   #3
tiga
Junior Member
 
Join Date: May 2003
Posts: 3
Thanks for the quick reply, Stu!

I suppose knowing the text width, I could play around with the label positions and right align the header text.

I certainly wish the foreground color was changeable, since the header background is dark gray, black fonts don't look very well. Now, you'll ask why can't I use a different color? Company branding restrictions. Could this be done through Windows API/custom DLL, since the labels are just standard windows controls, and we can already change the background color? I just don't want to reinvent the bicycle if this is in the works.

As far as the use of different modern interfaces, I was just looking for more information on their usage. Most examples use modern.exe as a standard.

Tigran
tiga is offline   Reply With Quote
Old 21st May 2003, 12:46   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
To center the text edit the UI using a resource editor such as Resource Hacker and add the SS_CENTER style to the static controls you wish to center.

Changing the text color would require changing the source code. If you wish to do that I can tell you how.

To use another interface just use ChangeUI or define MUI_UI if using the MUI.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 22nd May 2003, 20:10   #5
tiga
Junior Member
 
Join Date: May 2003
Posts: 3
Kichick,

I tried to look through the source code on my own. but with no avail. What is it that I need to do to change ONLY the header text to white? Thank you in advance.

Regards,
Tigran
tiga is offline   Reply With Quote
Old 22nd May 2003, 21:04   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Source\exehead\Ui.c line ~129 - function _HandleStaticBkColor.

Add SetTextColor for the appropriate control.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 22nd May 2003, 21:44   #7
DOCa Cola
Senior Member
 
DOCa Cola's Avatar
 
Join Date: Feb 2003
Location: Germany
Posts: 223
Send a message via ICQ to DOCa Cola Send a message via AIM to DOCa Cola Send a message via Yahoo to DOCa Cola
Will there be an option integrated to change the foreground textcolor? i don't want to change the source code for changing the header text color
DOCa Cola is offline   Reply With Quote
Old 22nd May 2003, 21:46   #8
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,896
I'm waiting for that option for a very long time


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 25th February 2006, 22:22   #9
HaMsTeYr
Junior Member
 
Join Date: Feb 2006
Posts: 37
Umm.. guys, sorry to bring this thread back alive again, but i tried finding a way to get the header's text position and colour's changed but haven't figured away to.

This thread was last answered 3 years ago lol, i was wondering if the newer NSIS versions have integrated something of the sort in, as i notice the basic.nsi has its text left aligned just because it has no !define MUI_HEADERIMAGE. thanks
HaMsTeYr is offline   Reply With Quote
Old 28th February 2006, 16:11   #10
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Use SetCtlColors.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 24th June 2006, 10:55   #11
HaMsTeYr
Junior Member
 
Join Date: Feb 2006
Posts: 37
>_> i'm kind of a n00b at this really... i can't understand alot of the scripting stuff posted =_= would someone be kind enough to just post the scripting here for a white header font colour? O_o
HaMsTeYr is offline   Reply With Quote
Old 27th June 2006, 16:02   #12
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
Do not forget you can always insert a CUSTOM page you do not NEED to use the build in pages.

"Just do it"
onad 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