Old 2nd May 2006, 06:33   #1
Karoly
Junior Member
 
Join Date: May 2006
Posts: 2
Dropdown list does not work in Windows 2000

Hi all,

If I compile the following very simple script, the compiled Test.exe would run in Windows XP fine. However, if I run the same Test.exe in Windows 2000, the dropdown list only shows User2, but not the other two. Am I missing something here or doing something wrong?

Test.nsi
code:

!include "MUI.nsh"

OutFile "Test.exe"

Page custom UserListPage
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"

Function .onInit
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "UserList.ini"
FunctionEnd

Section MainSection
SectionEnd

Function UserListPage
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "UserList.ini"
FunctionEnd



UserList.ini
code:

[Settings]
NumFields=1

[Field 1]
Type=Droplist
ListItems=User1|User2|User3
Left=0
Right=157
Top=64
Bottom=74
State=User2

Karoly is offline   Reply With Quote
Old 2nd May 2006, 07:45   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Use it like this:
Top=64
Bottom=108

copied from IO manual:
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. A rough guide for the height required is the number of items in the list multiplied by 8, plus 20.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 2nd May 2006, 20:32   #3
Karoly
Junior Member
 
Join Date: May 2006
Posts: 2
Thanks a lot, that made the trick!
Karoly is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump