PDA

View Full Version : set focus on a textInput component


Marcello2
03-02-2008, 09:26 AM
I have created a button component named "my_bt".
I have a textInput component named "my_ti".
I cannot get the focus on my_ti with this code.
my_bt.onRelease = function()
{
my_ti.setFocus;
}

Thank you for your help.
marcello

Marcello2
03-02-2008, 09:34 AM
eureka :D
my_bt.onRelease = function()
{
my_ti.setFocus();
}