Archive: Resize buttons


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?


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


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...


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


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.