View Single Post
Old 10th July 2017, 07:25   #1
klipko
Junior Member
 
Join Date: Jul 2017
Posts: 1
DropList appears disabled

Hello:

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

code:

!include "MUI2.nsh"

Name TestSetup
OutFile TestSetup.exe

XPStyle on

Page custom GetInstallationType ;LeaveGetInstallationType

Var /GLobal Dialog
Section Test

SectionEnd

Function .onInit
InitPluginsDir
FunctionEnd

Function GetInstallationType

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

nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog

${If} $Dialog == error
Abort
${EndIf}

${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

nsDialogs::Show

FunctionEnd



Thank you.
klipko is offline   Reply With Quote