hello,
i try to disable a button in the xml but with no luck
[control name="button" label="Create" width="100px" align="center" enabled="false"/]
what do i do wrong here ?
hello,
i try to disable a button in the xml but with no luck
[control name="button" label="Create" width="100px" align="center" enabled="false"/]
what do i do wrong here ?
It seems that this is not available in xml.
You may have to get the control via plain java code like iām doing quite the same with a textfield:
TextField tf = niftyScreen.findElementById("textfield").getNiftyControl(TextField.class);
tf.setEnabled(true);
tf.setFocusable(true);
tf.setFocus();
Hope that helps