Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Resize buttons (http://forums.winamp.com/showthread.php?t=248060)

Davidgn 7th June 2006 06:50

Resize buttons
 
Hi
I have made a custom page in my installer and i have changed the text on the cancel and the next button. However, the text on them is too long to fit in, is there any way of changing the size on the buttons to make the text fit?

CancerFace 7th June 2006 07:19

I use Resource Hacker on the modern header (NSIS\Contrib\UIs\modern.exe)to change the dimensions of the dialogs/buttons. Look for dialog 105.
CF

Davidgn 7th June 2006 07:24

I work in Linux and it is critical that all changes are made automatically since we make a new build for every customer. We do not have the time or resources to make manual adjustments to every installer we produce.

But a big thanks anyway...

CancerFace 7th June 2006 08:48

Fair enough. However you may still want to consider Resource Hacker or some equivalent in Linux since this can be automated into your process. You only have to design the interface once then use the header over and over. You can even have different dialogs for different languages. You can export the edited dialog then run a batch to import it upon compiling your installer. You may want to take a look at this: although it deals with message tables the principle is the same for dialog boxes.

I am not aware of another way, sorry :(

CF

kichik 16th June 2006 10:49

The source code contains functions to deal with dialog resources. You can add a new command that'd make the change. Take a look at Source\script.cpp under case TOK_ADDBRANDINGIMAGE for an example.


All times are GMT. The time now is 05:01.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.