Skip to content
⌘ NSIS Forum Archive

Install Options --> Resource Hacker

18 posts

Joel#

Install Options --> Resource Hacker

Ok, Trying (again 😛) to get to right numbers of the dialog:
I got this source code:

105 DIALOGEX 0, 0, 280, 162
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION ""
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, "MS Shell Dlg", FW_DONTCARE, FALSE, 0
{
CONTROL "Joel Almeida García", 1098, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 100, 100, 66, 11
}
My question is, wich are the values for the top, right, left, bottom?
kichik#
The last four numbers of the CONTROL line: 100, 100, 66, 11.
Left is 100, top is 100, right is 100+66, bottom is 100+11.
Joel#
Originally posted by kichik
The last four numbers of the CONTROL line: 100, 100, 66, 11.
Left is 100, top is 100, right is 100+66, bottom is 100+11.
The plus 100 in right and botton, are because the values in
left and top?
Joel#
in "text" fields is not the same, isn't? 🙁

CONTROL "", (..) 113, 138, 108, 13
the .ini:

Left=113
Top=138
Right=221
Bottom=151
Joel#
the textbox doesn´t show....
I think because the limit of the dialog (modern.exe) is 330X220
in the ini values are more than the limits...
kichik#
The limit of the modern dialog is 300x140. A big part of that textbox is outside of that boundry.
Joel#
Yea...so:
CONTROL "", (..) 113, 138, 108, 13
what's the correct units for:
Left=
Top=
Right=
Bottom=
Joel#
thanks... I tweak the values for the textbox... It worked
I'm going to try the rest of the objects and than
I'll put in the Nsis archive the tutorial.... hehehe
:up
Joel#
The tutorial is almost finished, need some push:

How can I put a icon or Bitmap in Install Options?
I mean the picture file not the code... 😉
kichik#
I am sorry, I don't understand what you mean. Just extract the bitmap/icon, and set the control's Text field to the path to the icon/bitmap.

GetTempFileName $0
File /oname=$0 mybitmap.bmp
WriteIniStr $PLUGINS\myIni.ini "Field 5" Text $0