RE: [flexcoders] Re: Set Focus on TextInput

2006-10-20 Thread Dustin Mercer












Try setting focus to the textField in the
creationComplete or show event of the TitleWindow itself.  If that doesn’t
work, you could try overriding the setFocus method of the TitleWindow.

 

I.E.

override public function setFocus() : void
{

    super.setFocus();

    txtUserId.setFocus();

}

 

Dustin
 Mercer

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of boy_trike
Sent: Wednesday, October 18, 2006
3:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Set
Focus on TextInput



 







If I understand you, there is an event that is raised
whenever a popup window is opened, 
and I can create a listener function. My question is, what is the name of this
event and 
where would I find a list of these events. I currently have the following lines:

mx.managers.PopUpManager.addPopUp(loginWindow, this, true);
loginWindow.txtUserID.setFocus();

Thanks
Bruce

--- In [EMAIL PROTECTED]ups.com,
"Daniel Freiman" <[EMAIL PROTECTED]..> wrote:
>
> it works if you setFocus after you call addPopUp/createPopUp, so my
guess is
> that the PopUpManager is setting focus to the popup which overriding your
> call. If you don't have access to the textfield, try putting the setfocus
> in more creative places, like a listener for when the popup is shown.
> 
> - Dan
> 
> On 10/18/06, boy_trike <[EMAIL PROTECTED]..> wrote:
> >
> > This does NOT seem to work for a popup. Is there another trick to
> > setFocus on a text field in
> > a popup?
> >
> > Thanks
> > Bruce
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
>






__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






Re: [flexcoders] Re: Set Focus on TextInput

2006-10-18 Thread John Kirby
Title: quote






Figured it out.

You need to set focus to the TextInput  reference at the container
level via creationComplete.



boy_trike said the following:


  
  This does NOT seem to work for a popup. Is there another trick to
setFocus on a text field in 
a popup?
  
Thanks
Bruce
  
  
  



-- 


Whether you think that you can, or that you
can't, you are usually right.
 - Henry Ford 



__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___




Re: [flexcoders] Re: Set Focus on TextInput

2006-10-18 Thread Daniel Freiman



it works if you setFocus after you call addPopUp/createPopUp, so my guess is that the PopUpManager is setting focus to the popup which overriding your call.  If you don't have access to the textfield, try putting the setfocus in more creative places, like a listener for when the popup is shown.
- DanOn 10/18/06, boy_trike <[EMAIL PROTECTED]> wrote:
This does NOT seem to work for a popup.  Is there another trick to setFocus on a text field ina popup?ThanksBruce--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/<*> Your email settings:Individual Email | Traditional
<*> To change settings online go to:http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)<*> To change settings via email:
mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___