There is some mention of implementing IFocusManager in the doc. In the Creating Components book when describing how to implement AS components:
 
 
And an example in the doc on creating item editors:
 
 
But it probably deserves a section on its own. We should be able to add something for the next release.
 
Stephen


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dordea cosmin
Sent: Saturday, September 23, 2006 6:55 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: tabbing in flex

Thanks for your reply. I wasn't aware that you actually have to write in the code
"implement IFocusManager"  to have focus enabled. I took a look in the
UI component source code and in the Button component source code and saw what I had to do.
Now back to my original question, is this specified anywhere in the official documentation? .When reading the UIComponent
documentation ,  focus options  looked like activated by default. The effort to have focus is minimal, but i didn't see anywhere
that you have to "implement the FocusManager interface" to have them activated.  Thanks.

----- Original Message ----
From: Dustin Mercer <dustin.mercer@mylivingspaces.com>
To: [EMAIL PROTECTED]ups.com
Sent: Friday, September 22, 2006 2:43:53 AM
Subject: RE: [flexcoders] Re: tabbing in flex

Yeah, this one was a bit annoying… Here is what I had to do to get it working. I had to set the tabChilden property to true in your custom component, override the setFocus method, and implement the IFocusManagerCompon ent interface.  This is only if your component is a pure AS component.  I found the mxml components tabbed fine.  One side note:  There still seems to be some really weird tabbing issues when tabbing out of the component.  Sometimes when you tab out of the component, it tabs back to the beginning of the form.  Just some weird things, I didn’t have a chance to trace it down though.  I’ll see if I can get some time to fix that.  I included the source to a time picker component that I built If you need something to reference (it’s not perfect, but it should illustrate the solution).

 


From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of khelonium
Sent: Thursday, September 21, 2006 8:04 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Re: tabbing in flex

 

I have the same problem and don't have a solution yet.
If I extend the UIComponent , shouldn't all the focus aspects work by
default? The documentation specifies that focus is enabled by
default. But it doesn't . If I try to use setFocus in a mouse event ,
focusEvents are not received by my component. Is there something that
I must do and it is not specified in the documentation to have
focusing work(mouse click , tab ,focus events)? Thank you.

--- In [EMAIL PROTECTED] ups.com, "b0b0bb0b" <ksutherland@ ...> wrote:
>
> well there are two things, one is a controlBar with buttons in it,
> and when tabbed the first button will be highlighted then it will
> just move onto the next text box in the VBox rather than the other
> buttons in the controlBar. I haven't implented the below, so I was
> just using the default settings. I then tried telling flex to make
> them all true but the program tabbed in the same way.
>
>
> The other custom component is a mxml file that contains a dateField
> and a text box. this get skiped altoghter when tabbing.
>
> thanks
>
>
>
>
>
> --- In [EMAIL PROTECTED] ups.com, "JesterXL" <jesterxl@> wrote:
> >
> > Does it extend UIComponent (or a sub-class)? Does it implment:
> >
> > tabChildren = false;
> > tabEnabled = true;
> > focusEnabled = true;
> >
> > ???
> >
> > ----- Original Message -----
> > From: "b0b0bb0b" <ksutherland@ >
> > To: <[EMAIL PROTECTED] ups.com>
> > Sent: Friday, July 21, 2006 10:04 AM
> > Subject: [flexcoders] tabbing in flex
> >
> >
> > if I have a Vbox with say 10 items in it. from buttons to text
> boxes,
> > as well as a custom component which I've extended. then when the
> app
> > loads I tab my way through the app which works fine until it comes
> to
> > the custom component. it has a tabIndex like the rest of the
> buttons
> > and text boxes, but it never recieves focus if you tab. the focus
> moves
> > straight to the next non-custom component.
> > Any ideas how to get around this.
> > cheers. I'm using flex 1.5
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
> http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.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

__,_._,___

Reply via email to