look in the source code than parsing the documentation. I have been trough the
flex getting started , flex developer's guide, developing flex application documentations and I
now have a general ideea about Flex , I have imagined going trough the API's is enough. A lot of custom components
require focus , I dont't think it is an advanced topic. If you think about it , the UIComponent class documentation really gives you the impression focus is enabled by default . At least a note should be added there imho.
Anyhow , your note is usefull for the next steps in my application , I now have an answer to my question , thanks .
From: stephenmartin2 <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, September 25, 2006 8:42:40 PM
Subject: [flexcoders] Re: tabbing in flex
There is some mention of implementing IFocusManager in the doc. In the
Creating Components book when describing how to implement AS components:
http://livedocs. macromedia. com/flex/ 2/docs/00001727. html
And an example in the doc on creating item editors:
http://livedocs. macromedia. com/flex/ 2/docs/00000863. html
But it probably deserves a section on its own. We should be able to
add something for the next release.
Stephen
--- In [EMAIL PROTECTED] ups.com, dordea cosmin <[EMAIL PROTECTED] ..> wrote:
>
> 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@ ...>
> 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: <flexcoders@ yahoogro 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
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
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
__,_._,___

