Thank you very much for the input. Is it a bug or what- why setFocus highlights the content of text input?
Thanks! -----Original Message-----
Try: this.tobdetail_ti.setFocus(); var len:Number = this.tobdetail_ti.text.length; Selection.setSelection(len, len);
----- Original Message ----- From: Doodi, Hari - BLS CTR Sent: Monday, November 28, 2005 3:33 PM Subject: [flexcoders] setFocus() problem.
Hi all, I am having problems with setFocus( ) function. What I am doing is – I have a textInput control with id name tobdetail_ti and in the .as file I am calling the following line of code so that if user press tab the cursor should be in this field. Focus is transferred as desired but the problem is it highlight the entire existing text. I don’t want this. I want the cursor should be place at the end of the text.
this.tobdetail_ti.setFocus();
Thanks!
|
- RE: [flexcoders] setFocus() problem. Doodi, Hari - BLS CTR
- Re: [flexcoders] setFocus() problem. JesterXL
- RE: [flexcoders] setFocus() problem. Doodi, Hari - BLS CTR
- Re: [flexcoders] setFocus() problem. JesterXL
- RE: [flexcoders] setFocus() problem. Doodi, Hari - BLS CTR