Added UpDown NSD control

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6907 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2017-09-26 12:01:16 +00:00
parent f1b2f82242
commit d4afa99b08
4 changed files with 142 additions and 222 deletions

View file

@ -1,5 +1,6 @@
!include nsDialogs.nsh
!include LogicLib.nsh
!include WinCore.nsh ; MAKELONG
Name "nsDialogs Example"
OutFile "nsDialogs Example.exe"
@ -147,6 +148,14 @@ Function RangesPage
Pop $2
${NSD_CreateTimer} RangesTimer 1000
${NSD_CreateNumber} 1 40u 50u 12u "42"
Pop $3
${NSD_CreateUpDown} 0 0 0 0 ""
Pop $4
${NSD_UD_SetBuddy} $4 $3
${MAKELONG} $5 $0 50 0 ; 0..50
${NSD_UD_SetPackedRange} $4 $5
nsDialogs::Show
FunctionEnd