I’m not sure what u mean exactly…not browser related though. This is within an application.

 

a)       User selects item in a tree control

b)       Based on selection a datagrid is populated

c)       The first item in the grid is auto selected

d)       This in turn toggles a viewstack to show the appropriate container. (viewhelper)

e)       Viewhelper then calls an initialization function on the container which firsts sets the value of a textinput field, then sets the focus

f)         Cursor is placed in the field but text is not selected

g)       If user switches to another item in the grid (causing the viewstack to change) and comes back a second time, the text is now selected

 

Cheers,

Stace

 


From: [email protected] [mailto:[email protected]] On Behalf Of Tracy Spratt
Sent: Friday, July 15, 2005 12:33 PM
To: [email protected]
Subject: RE: [flexcoders] onFocus, setSelection not highlighting textinput

 

Stacy, is this the browser/Player focus issue? Or is the problem control not on the first view?

Tracy

 


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

 

Tried that too, no dice. :(

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Philippe Maegerman
Sent: Friday, July 15, 2005 12:07 PM
To: [email protected]
Subject: RE: [flexcoders] onFocus, setSelection not highlighting textinput

 

maybe add creationComplete = "this.setFocus()" on the field itself

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Stacy Young
Sent: vendredi 15 juillet 2005 17:49
To: [email protected]
Subject: RE: [flexcoders] onFocus, setSelection not highlighting textinput

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




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



SPONSORED LINKS

Computer software testing

Macromedia flex

Development

Software developer

 

 



--
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




------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------

Reply via email to