littlepot
26th February 2010 09:32 UTC
How to diable MUI "Next" button when textbox have nothing?
I tried to MUI Next button set disable when textbox don't have anything(check Next button state at every key input changed), but it's difficult for me ... how is that possible?
( I am sorry I cannot write english well...:( )
MSG
26th February 2010 12:42 UTC
If you use nsDialogs to create the custom page, you can use the onChange function to go to an NSIS function every time something is changed in the textbox. In that function, simply get the text out of the textbox and compare it with "".
lazlot
27th February 2010 15:06 UTC
Littlepot, You could use something like this:
${If} $variable == ""
>GetDlgItem $6 $HWNDPARENT 1
EnableWindow$6 0 ; disable
>${Else}
>GetDlgItem $6 $HWNDPARENT 1
EnableWindow$6 1 ; enable
>${EndIf}