From 91d6d7e391146d2ddcb2c9adeb4ef1762d2d7540 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 27 Jan 2004 15:23:42 +0000 Subject: [PATCH] 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 --- Contrib/InstallOptions/testnotify.nsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Contrib/InstallOptions/testnotify.nsi b/Contrib/InstallOptions/testnotify.nsi index 17764c49..1f0dd690 100644 --- a/Contrib/InstallOptions/testnotify.nsi +++ b/Contrib/InstallOptions/testnotify.nsi @@ -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: