Old 26th February 2010, 08:32   #1
littlepot
Junior Member
 
Join Date: Feb 2010
Posts: 1
Question 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... )

Last edited by littlepot; 26th February 2010 at 08:50.
littlepot is offline   Reply With Quote
Old 26th February 2010, 11:42   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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 "".
MSG is offline   Reply With Quote
Old 27th February 2010, 14:06   #3
lazlot
Junior Member
 
Join Date: Dec 2009
Posts: 12
Littlepot, You could use something like this:

PHP Code:
${If} $variable == ""
GetDlgItem $6 $HWNDPARENT 1   
EnableWindow 
$6 0 disable 
${Else}
GetDlgItem $6 $HWNDPARENT 1   
EnableWindow 
$6 1 enable
${EndIf} 
lazlot is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump