- NSIS Discussion
- Install Options --> Resource Hacker
Archive: Install Options --> Resource Hacker
Joel
2nd March 2003 16:54 UTC
Install Options --> Resource Hacker
Ok, Trying (again :p) 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
2nd March 2003 17:00 UTC
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
2nd March 2003 17:04 UTC
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?
kichik
2nd March 2003 17:06 UTC
Yes, 66 and 11 are offsets from top/bottom.
Joel
2nd March 2003 17:32 UTC
Yupi !!! It's works.... :up: no more 45 mins. of pain
in the "tochie" :p
Joel
2nd March 2003 17:41 UTC
in "text" fields is not the same, isn't? :(
CONTROL "", (..) 113, 138, 108, 13
the .ini:
Left=113
Top=138
Right=221
Bottom=151
kichik
2nd March 2003 17:48 UTC
What's the problem?
Joel
2nd March 2003 17:53 UTC
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...
deguix
2nd March 2003 17:59 UTC
? The limit to create a page with install options is 300 X 140. (in modern UI).
kichik
2nd March 2003 18:01 UTC
The limit of the modern dialog is 300x140. A big part of that textbox is outside of that boundry.
Joel
2nd March 2003 18:11 UTC
Yea...so:
CONTROL "", (..) 113, 138, 108, 13
what's the correct units for:
Left=
Top=
Right=
Bottom=
kichik
2nd March 2003 18:26 UTC
There are no. It's too much far to the bottom, it crosses the bottom boundry.
Joel
2nd March 2003 18:32 UTC
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
3rd March 2003 03:09 UTC
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
3rd March 2003 12:59 UTC
Use type=bitmap or type=icon.
Joel
3rd March 2003 20:18 UTC
yes, but I mean put the image in the dialog...
kichik
3rd March 2003 20:24 UTC
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 $PLUGINSmyIni
.ini "Field 5" Text $0
>
Joel
3rd March 2003 20:53 UTC
Thanks kichik. Later today I'll put my tutorial. :)