This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- disable/enable next button in custom dlg
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 15, 2006
10:45 PM
disable/enable next button in custom dlg
I have created a custom dialog that has textboxes. I want to disable the 'next' button of the dialog when the text boxes are empty and enable when they are all filled. How exactly do I do that (just so you know, I'm an average java programmer).
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2006
04:01 PM
Have you tried to add a Condition to the button?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 02, 2006
03:14 PM
Hi,
I assume you have some kind of event handler...
catch the related container
ISContainer container = arg0.getISContainer();
and do something like
ISButton nextButton = container.getButton("next");
if (nextButton != null) {
nextButton.setEnabled(true);
}
you can catch a textfield by using soemthing like
ISTextField myTextField = (ISPanel) container.getTextField("name of field")
myText.getText() ...
Ok?
Regards,
Heiko
I assume you have some kind of event handler...
catch the related container
ISContainer container = arg0.getISContainer();
and do something like
ISButton nextButton = container.getButton("next");
if (nextButton != null) {
nextButton.setEnabled(true);
}
you can catch a textfield by using soemthing like
ISTextField myTextField = (ISPanel) container.getTextField("name of field")
myText.getText() ...
Ok?
Regards,
Heiko
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)