Skip to content
⌘ NSIS Forum Archive

How to increse the window size

6 posts

sandeepsirsgi#

How to increse the window size

Hi,

How to increase the installation window size.
i.e I am prompting for user information (ex: username, email, etc. ) these fields are around 10, so at present i can only takes 8 fields, so how to increse the window size.

Can anyone help me on that.

Regards
Sandy
Afrow UK#
Afraid this isn't a simple task. One feature that NSIS really needs is the option to have a resizable dialog. Currently you can only resize the dialog using Resource Hacker on the UI that you are using (for Modern UI it's Contrib\UIs\modern.exe).
Unfortunatly to resize the dialog you need to resize all other controls in the user interface as well.

-Stu
any#
but how is it done in MUI then?

just check out the different size of the MUI MultiLanguage Example if you select English or Chinese...
Afrow UK#
That is because of the difference font sizes. The Windows OS resizes the dialog accordingly to fit the text in.

-Stu
Brummelchen#
change dialog 105 in modern.exe with resourcehacker

(i dont know the file for the old style - i only use MUI)

example
105 DIALOGEX 0, 0, 331, 250
STYLE DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION ""
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, "MS Shell Dlg"
{
CONTROL "", 3, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 129, 229, 60, 14
CONTROL "", 1, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 196, 229, 60, 14
CONTROL "", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 263, 229, 60, 14
CONTROL "", 1018, STATIC, SS_BLACKRECT | WS_CHILD | WS_GROUP, 15, 45, 300, 168
CONTROL "", 1044, STATIC, SS_BLACKRECT | WS_CHILD | WS_GROUP, 0, 0, 331, 221
CONTROL "", 1035, STATIC, SS_ETCHEDHORZ | WS_CHILD | WS_VISIBLE | WS_GROUP, 5, 221, 321, 1
CONTROL "", 1036, STATIC, SS_ETCHEDHORZ | WS_CHILD | WS_VISIBLE | WS_GROUP, 0, 35, 340, 1
CONTROL "", 1045, STATIC, SS_ETCHEDHORZ | WS_CHILD | WS_GROUP, 0, 221, 340, 1
CONTROL "", 1256, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 5, 216, 322, 8
CONTROL "", 1028, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_GROUP, 5, 216, 322, 8
CONTROL "", 1034, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 0, 0, 332, 35
CONTROL "", 1037, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 10, 5, 280, 10
CONTROL "", 1038, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 15, 16, 275, 16
CONTROL 103, 1039, STATIC, SS_ICON | WS_CHILD | WS_VISIBLE | WS_GROUP, 300, 8, 21, 20
}
onad#
And if it does not fit, what about the option to divide the fields over more pages... ? Maybe also easier for the person who has to install you application.