自定义页面之文本框必填

!include nsDialogs.nsh

Name nsDialogs
OutFile nsDialogs.exe

XPStyle on

Var Dialog
Var Getdlg
Var Text

Page custom nsDialogsPage
Page instfiles

Function nsDialogsPage
 nsDialogs::Create /NOUNLOAD 1018
 Pop $Dialog
 ${If} $Dialog == error
 Abort
 ${EndIf}

 ${NSD_CreateText} 0 33u 100% 13u ""
 Pop $Text
 GetDlgItem $Getdlg $HWNDPARENT 1
 ${NSD_OnChange} $Text TextChange
 EnableWindow $Getdlg 0

 nsDialogs::Show
FunctionEnd

Section
DetailPrint "hello world"
SectionEnd

Function TextChange
 EnableWindow $Getdlg 1
FunctionEnd
© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容