Old 10th July 2017, 06:25   #1
Junior Member
Join Date: Jul 2017
Posts: 1
DropList appears disabled


Hoping I'm not the only one with this issue; I've created a DropList control on a custom page but for what ever reason the control looks disabled. It does fully function, I can select either of the options listed and the OnChange event fires. It's just gray giving the appearance that it's disabled.

If I switch to the Create to a ComboBox, the control looks just fine

Any ideas as to why that is?

Sample code


!include "MUI2.nsh"

Name TestSetup
OutFile TestSetup.exe

XPStyle on

Page custom GetInstallationType ;LeaveGetInstallationType

Var /GLobal Dialog
Section Test


Function .onInit

Function GetInstallationType

!insertmacro MUI_HEADER_TEXT "$(GetInstallationType_Header)" "$(GetInstallationType_SubHeader)"

nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog

${If} $Dialog == error

${NSD_CreateGroupBox} 0 0 100% 100 GroupBox
Pop $0

${NSD_CreateLabel} 10 20 95% 30 Description
Pop $0

${NSD_CreateDropList} 10 60 200 30 ""
Var /Global GetInstallationType_DropListInstallType
Pop $GetInstallationType_DropListInstallType

${NSD_CB_AddString} $GetInstallationType_DropListInstallType one
${NSD_CB_AddString} $GetInstallationType_DropListInstallType two
${NSD_CB_AddString} $GetInstallationType_DropListInstallType three

${NSD_CB_SelectString} $GetInstallationType_DropListInstallType two



Thank you.
klipko is offline   Reply With Quote
Old 10th July 2017, 09:43   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
The Windows combobox is the dumbest control ever. Try making the height a higher value like 100u if the problem is on Win2000 or older (or classic theme).

A combobox in list mode will look "disabled" (not really because the text is not grey) in some visual styles and there is nothing you can do about that.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

disable, droplist

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