I tried using LinkButtons and was still not able to get tabbing to work:
<mx:HBox tabChildren="true">
<mx:Label text="1." />
<mx:LinkButton label="A" tabIndex="0" tabEnabled="true" />
<mx:LinkButton label="B" tabIndex="1" tabEnabled="true" />
<mx:Label text="2." />
<mx:LinkButton label="C" tabIndex="2" tabEnabled="true" />
<mx:LinkButton label="D" tabIndex="3" tabEnabled="true" />
</mx:HBox>
--- In [email protected], "Deepa Subramaniam" <[EMAIL PROTECTED]>
wrote:
>
> Currently in the framework, you cannot tab through components like
> Label, Text and Image. They will not respond with a focus highlight
> which other controls, like a Button, do. Try your same test case with a
> Button and you'll see that the controls respond to tabbing in the order
> specified by tabIndex.
>
> -deepa
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of polestar11
> Sent: Tuesday, June 20, 2006 6:40 AM
> To: [email protected]
> Subject: [flexcoders] Tabbing through items in a container
>
> Hi there
>
> I am trying to build a custom list that allows the same type of cursor
> tabbing though child items as a list / datagrid.
>
> I have created a custom class that extends HBox. I have chosen a
> container rather than a list to extend from, because I do not want a
> fixed column width for items.
>
> I have tried various test cases to implement tabbing though a
> container's children with no luck. Ultimately I want to build a custom
> class that extends a container and dynamically adds child UI-items
> that can be tabbed through.
>
> Alternatively, is there a way to allow for dynamic column sizes for
> items within a list?
>
> Code:
> <mx:Canvas tabChildren="true">
> <mx:Label text="1." />
> <mx:Label text="A" tabIndex="0" tabEnabled="true" />
> <mx:Label text="B" tabIndex="1" tabEnabled="true" />
> <mx:Label text="2." />
> <mx:Label text="C" tabIndex="2" tabEnabled="true" />
> <mx:Label text="D" tabIndex="3" tabEnabled="true" />
> </mx:Canvas>
>
>
>
>
>
>
> --
> 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
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> 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/