I would like to enable Next button only if every text field is filled:
Do I have to make an .INI file or am I on the good way to do it ?
Function Veto1
!insertmacro MUI_HEADER_TEXT "Information" $(InfoUser)
GetDlgItem $0 $HWNDPARENT 1
EnableWindow $0 0
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
${NSD_CreateLabel} 0 0 100% 12u $(L_Clinique)
Pop $Label
${NSD_CreateText} 0 10u 100u 12u $C_Clinique
Pop $Text
${NSD_SetTextLimit} $Text 25
${NSD_setFocus} $Text
${NSD_CreateLabel} 0 25u 100% 12u $(L_Service)
Pop $Label3
${NSD_CreateText} 0 35u 100u 12u $C_Service
Pop $Text3
${NSD_SetTextLimit} $Text3 40
${NSD_CreateLabel} 0 50u 100% 12u $(L_NomVets)
Pop $Label4
${NSD_CreateText} 0 60u 100u 12u $C_NomVets
Pop $Text4
${NSD_SetTextLimit} $Text4 55
${NSD_CreateLabel} 0 75u 100% 12u $(L_Adresse1)
Pop $Label1
${NSD_CreateText} 0 85u 200u 12u $C_Adresse1
Pop $Text1
${NSD_SetTextLimit} $Text1 80
${NSD_CreateLabel} 0 100u 100% 12u $(L_Adresse2)
Pop $Label2
${NSD_CreateText} 0 110u 200u 12u $C_Adresse2
Pop $Text2
${NSD_SetTextLimit} $Text2 80
nsDialogs::Show
FunctionEnd
Function Veto1Leave
StrCmp $Text "" -1 0
StrCmp $Text1 "" -2 0
StrCmp $Text3 "" -3 0
StrCmp $Text4 "" -4 0
EnableWindow $0 1
${NSD_GetText} $Text $C_Clinique
${NSD_GetText} $Text1 $C_Adresse1
${NSD_GetText} $Text2 $C_Adresse2
${NSD_GetText} $Text3 $C_Service
${NSD_GetText} $Text4 $C_NomVets
FunctionEnd