脚本:下拉菜单
优质
小牛编辑
139浏览
2023-12-01
引用example_NSD_DropList.nsi的内容:
!include "MUI2.nsh" Name "example_NSD_DropList" OutFile "example_NSD_DropList.exe" InstallDir "$EXEDIR" Page custom nsDialogsPage !insertmacro MUI_LANGUAGE "English" Section "" SectionEnd Var DropList1 Var DropList2 Var DropList3 Function nsDialogsPage nsDialogs::Create /NOUNLOAD 1018 Pop $0 ${NSD_CreateLabel} 20 20 100 10u "Height: 100" ${NSD_CreateDropList} 20 50 100 100 "" Pop $DropList1 ${NSD_CB_AddString} $DropList1 A ${NSD_CB_AddString} $DropList1 B ${NSD_CB_AddString} $DropList1 C ${NSD_CB_AddString} $DropList1 D ${NSD_CB_AddString} $DropList1 E ${NSD_CB_AddString} $DropList1 A ${NSD_CB_AddString} $DropList1 B ${NSD_CB_AddString} $DropList1 C ${NSD_CB_AddString} $DropList1 D ${NSD_CB_AddString} $DropList1 E ${NSD_CB_AddString} $DropList1 A ${NSD_CB_AddString} $DropList1 B ${NSD_CB_AddString} $DropList1 C ${NSD_CB_AddString} $DropList1 D ${NSD_CB_AddString} $DropList1 E ${NSD_CB_AddString} $DropList1 A ${NSD_CB_AddString} $DropList1 B ${NSD_CB_AddString} $DropList1 C ${NSD_CB_AddString} $DropList1 D ${NSD_CB_AddString} $DropList1 E ${NSD_CB_AddString} $DropList1 A ${NSD_CB_AddString} $DropList1 B ${NSD_CB_AddString} $DropList1 C ${NSD_CB_AddString} $DropList1 D ${NSD_CB_AddString} $DropList1 E ${NSD_CB_AddString} $DropList1 A ${NSD_CB_AddString} $DropList1 B ${NSD_CB_AddString} $DropList1 C ${NSD_CB_AddString} $DropList1 D ${NSD_CB_AddString} $DropList1 E ${NSD_CB_AddString} $DropList1 A ${NSD_CB_AddString} $DropList1 B ${NSD_CB_AddString} $DropList1 C ${NSD_CB_AddString} $DropList1 D ${NSD_CB_AddString} $DropList1 E ${NSD_CB_AddString} $DropList1 A ${NSD_CB_AddString} $DropList1 B ${NSD_CB_AddString} $DropList1 C ${NSD_CB_AddString} $DropList1 D ${NSD_CB_AddString} $DropList1 E ${NSD_CB_AddString} $DropList1 A ${NSD_CB_AddString} $DropList1 B ${NSD_CB_AddString} $DropList1 C ${NSD_CB_AddString} $DropList1 D ${NSD_CB_AddString} $DropList1 E ${NSD_CreateLabel} 150 20 100 10u "Height: 500" ${NSD_CreateDropList} 150 50 100 500 "" Pop $DropList2 ${NSD_CB_AddString} $DropList2 A ${NSD_CB_AddString} $DropList2 B ${NSD_CB_AddString} $DropList2 C ${NSD_CB_AddString} $DropList2 D ${NSD_CB_AddString} $DropList2 E ${NSD_CB_AddString} $DropList2 A ${NSD_CB_AddString} $DropList2 B ${NSD_CB_AddString} $DropList2 C ${NSD_CB_AddString} $DropList2 D ${NSD_CB_AddString} $DropList2 E ${NSD_CB_AddString} $DropList2 A ${NSD_CB_AddString} $DropList2 B ${NSD_CB_AddString} $DropList2 C ${NSD_CB_AddString} $DropList2 D ${NSD_CB_AddString} $DropList2 E ${NSD_CB_AddString} $DropList2 A ${NSD_CB_AddString} $DropList2 B ${NSD_CB_AddString} $DropList2 C ${NSD_CB_AddString} $DropList2 D ${NSD_CB_AddString} $DropList2 E ${NSD_CB_AddString} $DropList2 A ${NSD_CB_AddString} $DropList2 B ${NSD_CB_AddString} $DropList2 C ${NSD_CB_AddString} $DropList2 D ${NSD_CB_AddString} $DropList2 E ${NSD_CB_AddString} $DropList2 A ${NSD_CB_AddString} $DropList2 B ${NSD_CB_AddString} $DropList2 C ${NSD_CB_AddString} $DropList2 D ${NSD_CB_AddString} $DropList2 E ${NSD_CB_AddString} $DropList2 A ${NSD_CB_AddString} $DropList2 B ${NSD_CB_AddString} $DropList2 C ${NSD_CB_AddString} $DropList2 D ${NSD_CB_AddString} $DropList2 E ${NSD_CB_AddString} $DropList2 A ${NSD_CB_AddString} $DropList2 B ${NSD_CB_AddString} $DropList2 C ${NSD_CB_AddString} $DropList2 D ${NSD_CB_AddString} $DropList2 E ${NSD_CB_AddString} $DropList2 A ${NSD_CB_AddString} $DropList2 B ${NSD_CB_AddString} $DropList2 C ${NSD_CB_AddString} $DropList2 D ${NSD_CB_AddString} $DropList2 E ${NSD_CreateLabel} 280 20 100 10u "Height: 1000" ${NSD_CreateDropList} 280 50 100 1000 "" Pop $DropList3 ${NSD_CB_AddString} $DropList3 A ${NSD_CB_AddString} $DropList3 B ${NSD_CB_AddString} $DropList3 C ${NSD_CB_AddString} $DropList3 D ${NSD_CB_AddString} $DropList3 E ${NSD_CB_AddString} $DropList3 A ${NSD_CB_AddString} $DropList3 B ${NSD_CB_AddString} $DropList3 C ${NSD_CB_AddString} $DropList3 D ${NSD_CB_AddString} $DropList3 E ${NSD_CB_AddString} $DropList3 A ${NSD_CB_AddString} $DropList3 B ${NSD_CB_AddString} $DropList3 C ${NSD_CB_AddString} $DropList3 D ${NSD_CB_AddString} $DropList3 E ${NSD_CB_AddString} $DropList3 A ${NSD_CB_AddString} $DropList3 B ${NSD_CB_AddString} $DropList3 C ${NSD_CB_AddString} $DropList3 D ${NSD_CB_AddString} $DropList3 E ${NSD_CB_AddString} $DropList3 A ${NSD_CB_AddString} $DropList3 B ${NSD_CB_AddString} $DropList3 C ${NSD_CB_AddString} $DropList3 D ${NSD_CB_AddString} $DropList3 E ${NSD_CB_AddString} $DropList3 A ${NSD_CB_AddString} $DropList3 B ${NSD_CB_AddString} $DropList3 C ${NSD_CB_AddString} $DropList3 D ${NSD_CB_AddString} $DropList3 E ${NSD_CB_AddString} $DropList3 A ${NSD_CB_AddString} $DropList3 B ${NSD_CB_AddString} $DropList3 C ${NSD_CB_AddString} $DropList3 D ${NSD_CB_AddString} $DropList3 E ${NSD_CB_AddString} $DropList3 A ${NSD_CB_AddString} $DropList3 B ${NSD_CB_AddString} $DropList3 C ${NSD_CB_AddString} $DropList3 D ${NSD_CB_AddString} $DropList3 E ${NSD_CB_AddString} $DropList3 A ${NSD_CB_AddString} $DropList3 B ${NSD_CB_AddString} $DropList3 C ${NSD_CB_AddString} $DropList3 D ${NSD_CB_AddString} $DropList3 E nsDialogs::Show FunctionEnd