TextField.isEnabled?

Hi,

I have a text field but at the end of the game the user gets an option to Exit game or Play again and I would like to disable the textfield.

There is an image over the text field but when I click the “Play Again” image the marker gets set on the text field and the keyboard appear.

Is there anyway to disable the text field without removing it?

Best regards,

Tomas

You could use transition.to and move the textField to offScreen location when not needed. 

Hi Ksan,

That is what I did. 

I have been working with text fields, check boxes etc. and it would be nice to have isEnabled on all of them and also for Corona to be able to simulate the keyboard, text field etc. in the simulator. It’s very time consuming rebuilding the app to verify a small change but that’s another topic.

Thanks!

Best regards,

Tomas

Agreed. This would be good to have on all widgets on a consistent basis.

I see it is available on newButton() - see http://docs.coronalabs.com/api/type/ButtonWidget/setEnabled.html - so perhaps it can grow from there.

You could use transition.to and move the textField to offScreen location when not needed. 

Hi Ksan,

That is what I did. 

I have been working with text fields, check boxes etc. and it would be nice to have isEnabled on all of them and also for Corona to be able to simulate the keyboard, text field etc. in the simulator. It’s very time consuming rebuilding the app to verify a small change but that’s another topic.

Thanks!

Best regards,

Tomas

Agreed. This would be good to have on all widgets on a consistent basis.

I see it is available on newButton() - see http://docs.coronalabs.com/api/type/ButtonWidget/setEnabled.html - so perhaps it can grow from there.