Add the disabled flag too so when we return to this page it's disabled again

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3422 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-01-27 15:23:42 +00:00
parent 88fd4b000b
commit 91d6d7e391

View file

@ -60,6 +60,13 @@ supportx:
EnableWindow $1 $0
GetDlgItem $1 $hwnd 1205 ; ... button (the following control)
EnableWindow $1 $0
; Add the disabled flag too so when we return to this page it's disabled again
StrCmp $0 0 0 +3
WriteINIStr "$PLUGINSDIR\test.ini" "Field 5" "Flags" "GROUP|FILE_MUST_EXIST|FILE_EXPLORER|FILE_HIDEREADONLY|DISABLED"
Goto +2
WriteINIStr "$PLUGINSDIR\test.ini" "Field 5" "Flags" "GROUP|FILE_MUST_EXIST|FILE_EXPLORER|FILE_HIDEREADONLY"
Abort ; Return to the page
clearbtn:
@ -83,6 +90,13 @@ droplist:
EnableWindow $1 $0
GetDlgItem $1 $hwnd 1207 ; ... button (the following control)
EnableWindow $1 $0
; Add the disabled flag too so when we return to this page it's disabled again
StrCmp $0 0 0 +3
WriteINIStr "$PLUGINSDIR\test.ini" "Field 6" "Flags" "DISABLED"
Goto +2
WriteINIStr "$PLUGINSDIR\test.ini" "Field 6" "Flags" ""
Abort ; Return to the page
validate: