PDA

View Full Version : How to verify if texbox is enabled


disbeat
02-08-2011, 07:19 PM
Hi,

Is there a way to check if a textbox is enabled? I see the methods for enabling and disabling, but how can I just check if it is enabled in a particular moment?

Thanks in advance,

Marco Simões

Jeff
02-09-2011, 01:20 PM
If you are going to disable and enable the textbox you can create a variable to keep track of it's state. If you need to check whether the textbox has focus use the <node3d:GUI>.getFocus() command.