Archive: Install Options --> Resource Hacker


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?

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.


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?

Yes, 66 and 11 are offsets from top/bottom.


Yupi !!! It's works.... :up: no more 45 mins. of pain
in the "tochie" :p


in "text" fields is not the same, isn't? :(


CONTROL "", (..) 113, 138, 108, 13


the .ini:

Left=113
Top=138
Right=221
Bottom=151

What's the problem?


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...


? The limit to create a page with install options is 300 X 140. (in modern UI).


The limit of the modern dialog is 300x140. A big part of that textbox is outside of that boundry.


Yea...so:
CONTROL "", (..) 113, 138, 108, 13
what's the correct units for:
Left=
Top=
Right=
Bottom=


There are no. It's too much far to the bottom, it crosses the bottom boundry.


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


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... ;)


Use type=bitmap or type=icon.


yes, but I mean put the image in the dialog...


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
>

Thanks kichik. Later today I'll put my tutorial. :)