Skip to content
⌘ NSIS Forum Archive

InstallOptions help

17 posts

Afrow UK#

InstallOptions help

I have a DropList with the following positions:

Left=100
Right=-30
Top=31
Bottom=80
But, when I try opening the DropList, nothing drops down. What have I done wrong?

-Stu
Joost Verburg#
For combobox or droplist, the "bottom" value is not used in the same way.

In this case, the bottom value is the maximum size of the window when the pop-up list is being displayed. All other times, the combobox is automatically sized to be one element tall. If you have trouble where you can not see the combobox drop-down, then check the bottom value and ensure it is large enough.
Afrow UK#
If I change

Bottom=80

to

Bottom=10

Then I see a small black square opening under the box of about 2 units. If I increase this value, the black square still opens at only 3 units, until I get to 50 and it just disappears.

I don't understand this!

-Stu
virtlink#
It could be the ZOrder-bug, which means that the combobox does open, but it is drawn behind the component selection object, so you can't see it. Are you using Win98 or WinME?
Joost Verburg#
Did you add a few ListItems? Without items, it does not drop down. Works fine for me (XP Pro).
Afrow UK#
Well, you're right.
I have just gone back into the ini file and found STATE was blank.
I re-entered the list items, and re-ran the program, but it still doesn't work. I then re-opened the ini file to find that STATE is blank again.

It is writing to the ini file before the page shows.

WTH!?

-Stu
Joost Verburg#
Your source INI files is only being added to the installer data, it doesn't modify it. You probably forgot to save it.
Afrow UK#
Nope, it still does not work. I re-enter the listbox items, re-save it, run the exe again, and state is blank again.

This is wierd. Can you show me an example where this isn't happening?

-Stu
deguix#
Why the right location is -30 and the left 100? An object inversed?

(It should be:

Left=-30
Right=100
Top=31
Bottom=80)
kichik#
Since minus 30 is the dialog width minus 30 and the dialog is wider than 130 units your version is the inverted one.