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 IFocusManagerComponent 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] [mailto:[email protected]] On Behalf Of khelonium
Sent: Thursday, September 21, 2006 8:04 AM
To: [email protected]
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/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

__,_._,___

Attachment: TimeChooser.as
Description: TimeChooser.as

Reply via email to