cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kalantva
Level 3

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).
Labels (1)
0 Kudos
(2) Replies
weisun
Level 2

Have you tried to add a Condition to the button?
0 Kudos
HeikoOtt
Level 4

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
0 Kudos