disable window
Hello,
I try to deactivate a field text (Field 3), when I click a button radio (Field 4), then to reactivate it with another button radio (Field 2).
The problem with my code it's because the field is deactivated well if I go to the following page then if I return.
My code:
Function LeaveCustom
ReadINIStr $0 "$PLUGINSDIR\raccourci.ini" "Settings" "State"
StrCmp $0 "0" bouton_continuer
StrCmp $0 "2" radio_oui
StrCmp $0 "4" radio_non
Abort
radio_oui:
GetDlgItem $1 $hwnd 1203
EnableWindow $1 1
WriteINIStr "$PLUGINSDIR\raccourci.ini" "Field 3" "Flags" "ENABLED"
Abort
radio_non:
GetDlgItem $1 $hwnd 1203
EnableWindow $1 0
WriteINIStr "$PLUGINSDIR\raccourci.ini" "Field 3" "Flags" "DISABLED"
Abort
bouton_continuer:
FunctionEnd
Thank you,