Archive: using larger dialog 105 has no effect


using larger dialog 105 has no effect
i try to use a larger dialog 105 from modern.exe
(30 pixel higher, adjusted gui)

105 DIALOGEX 0, 0, 331, 252
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, 166, 231, 50, 14
CONTROL "", 1, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 216, 231, 50, 14
CONTROL "", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 273, 231, 50, 14
CONTROL "", 1018, STATIC, SS_BLACKRECT | WS_CHILD | WS_GROUP, 15, 45, 300, 170
CONTROL "", 1044, STATIC, SS_BLACKRECT | WS_CHILD | WS_GROUP, 0, 0, 331, 223
CONTROL "", 1035, STATIC, SS_ETCHEDHORZ | WS_CHILD | WS_VISIBLE | WS_GROUP, 5, 223, 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, 223, 340, 1
CONTROL "", 1256, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 5, 218, 322, 8
CONTROL "", 1028, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_GROUP, 5, 218, 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
}

neither
ChangeUI IDD_VERIFY "${NSISDIR}\Contrib\UIs\modern2.exe"
!define MUI_UI "${NSISDIR}\Contrib\UIs\modern2.exe"
ChangeUI all "${MUI_UI}"
did it.

I also copied
!include "MUI2.nsh"
which leads to "system2.nsh" and that refers again to "modern2.exe

I did something similar to dialog 111 before (thread can be found here), but any attempt now is refused - i always get the normal window (30 pixel smaller)

I am *not familiar with RECT nor some code to change.

Pls help.

Just use !define MUI_UI "myUI.exe".
Modern UI should call ChangeUI for you.

-Stu


sorry, didn't made it
is it important that it is an IO ?


If you make 105 larger, you make space for all dialogs larger too. 105 is used as the base for all the others (using the grey rect in the middle.)

I just resized 105 in a copy of modern.exe that I put in the same folder as my script, used !define MUI_UI modern.exe, and it works with no problems.

-Stu


No :(


Try this UI. I've made it 30 pixels taller.
Place it in same folder as script and use:
!define MUI_UI "modern.exe"

-Stu


Not possible - i'm getting upset.
The MUI example works, but not any of my other installers.

Ok i got it - it's a bug when defining a header bitmap, tried every example now - that's the only one.
Thanks for your help.

##
it's about line 140 (system.nsh)
>> !ifdef MUI_HEADERIMAGE

>> IDD_INST
>> 105
is modified


Ah right!!
In that case, you need to modify the modern_headerbitmap.exe UI.
I think that one might overwrite the modern one completely, but I'm not 100% on that.

-Stu


>> you need to modify the modern_headerbitmap.exe UI.

weapon loaded - target focussed - target eliminated :D

Thank you very much, i never thought about this. :up:
I also never noticed that missing bitmap in reshacker (UL) :rolleyes: