p.s. only occurs when displayed for the first time. (textinput sits in a viewstack). Tried changing the creationPolicy to all, no effect. When the viewstack is flipped back to show the field again later, the setFocus works as intended. Ack!

 


From: [email protected] [mailto:[email protected]] On Behalf Of Stacy Young
Sent: Friday, July 15, 2005 11:41 AM
To: [email protected]
Subject: [flexcoders] onFocus, setSelection not highlighting textinput

 

Minor annoyance here but I can’t seem to get the text of a textinput field to highlight properly. It’s as if the setFocus occurs before the textinput value is set so the cursor is just placed at index 0 of the field. Also tried explicitly selection the text in the field using setSelection but alas, no effect.

 

Myfield.text = “blah”;

Myfield.setFocus();  (or Selection.setFocus(Myfield))

 

Appreciate any insight,

Gracias,

Stace







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to