DirText textbox width/height
Is there a way to tweak the height/width of the DirText textbox on the "directory" page?
Archive: DirText textbox width/height
DirText textbox width/height
Is there a way to tweak the height/width of the DirText textbox on the "directory" page?
Sure, use Resource Hacker to modify Contrib\UIs\modern.exe. You may want to save it as a new copy though and use !define MUI_UI my_new_modern.exe
Stu
hmmm...doesn't seem to work.
Is it really modern.exe?
I've even tried editing default.exe with ResHack.
The best would be if it's controlled from in the script.
you know, I got an idea.
I can probably manipulate it using SendMessages (btw, as it turns out, I'm not use MUI at all).
I just need to know which ones are the elements I need to move and resize.
Looking at the source:
#define IDC_EDIT1 1000
#define IDC_BROWSE 1001
#define IDC_PROGRESS 1004
#define IDC_INTROTEXT 1006
#define IDC_CHECK1 1008
#define IDC_LIST1 1016
#define IDC_COMBO1 1017
#define IDC_CHILDRECT 1018
#define IDC_DIR 1019
#define IDC_SELDIRTEXT 1020
#define IDC_TEXT1 1021
#define IDC_TEXT2 1022
#define IDC_SPACEREQUIRED 1023
#define IDC_SPACEAVAILABLE 1024
#define IDC_SHOWDETAILS 1027
#define IDC_VERSTR 1028
#define IDC_UNINSTFROM 1029
#define IDC_STR 1030
#define IDC_ULICON 1031
#define IDC_TREE1 1032
#define IDC_BRANDIMAGE 1033
#define IDC_LICENSEAGREE 1034
#define IDC_LICENSEDISAGREE 1035
Update
Although it would be cool to be able to use System/Win32 calls to do it, I revisited the ResHack method and finally got it to work.
The key was to use ResHack and edit default.exe and adjust the size for every dialog (and items in them) accordingly then add the following to my NSI script:
ChangeUI all reshacked_default.exe
SendMessage would not have worked. You would have had to call SetWindowPos with the System plugin, like shown here:
http://forums.winamp.com/showthread.php?threadid=245878
Yeh default.exe is for classic UI.
Stu
I was thinking more along the lines of MoveWindow (since some items have to be shifted down) and then send a WM_PAINT/WM_SIZE msg.