Skip to content
⌘ NSIS Forum Archive

Run-time change the condition Enable buttons Next

10 posts

Raveren#

Run-time change the condition Enable buttons Next

Help to do so that at appearance of the text in text field, button Next moved over to condition EnableWindow $0 1, but under his absence EnableWindow $0 0

Sorry for bad English
kichik#
You can't do that as the NOTIFY flag doesn't work for text fields. However, you can set MinLen to 1 and ValidateText to some message. Then, once the user hits the next button with an empty text field, the error message will pop-up.
Raveren#
Originally posted by kichik
You can't do that as the NOTIFY flag doesn't work for text fields. However, you can set MinLen to 1 and ValidateText to some message. Then, once the user hits the next button with an empty text field, the error message will pop-up.
Thank you, as You have offered, I have already done

Can try to send the flag other component, which has a NOTIFY flag?
kichik#
"Button", "Link", "CheckBox", "RadioButton", "ListBox" and "DropList" support the NOTIFY flag.
Red Wine#
A small example at wiki that might be helpful,

Raveren#
I shall paraphrase a question.

Whether probably to transfer any component any flag that at that component has worked flag NOTIFY?
Raveren#
For example me it is necessary to know, can text field to send the events when entering the text. If no, that question exhausted.
kichik#
In Windows it's possible using the EN_UPDATE notification message. InstallOptions, however, doesn't support it so it's not posssible with NSIS without modifying the source code.