Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
AnoPres #1
Set focus to control in panel inside accordion
I have an accordion control that has forms as children for the different views.
At the bottom of each view (except the last), I have a continue button that
advances the user to the next panel in the accordion. The focus, however stays
on the accordion control and tabs through the rest of the interface before it
gets back to the new view. How do I set the focus on a specific control inside
the form when a panel becomes active? I'm sure it's something really simple, I
just haven't been able to get it to work.
AnoPres Guest
-
Focus, Browsers & Spry Accordion
I'm using the Spry Accordion (and like it a lot), but I've observed a minor unwanted effect: In some browsers (FF and Chrome) there is a frame... -
Accordion Content Panel
Is there a way to get text to wrap around an image in the content panel. I have inserted an image and when I go to type text it does not wrap around... -
Skinning Panel & TitleWindow & Accordion
I want to create custom components based on Panel, TitleWindow and Accordion. I know how to create custom components, the basics only, but I want to... -
Radio buttons inside Accordion tab?
So I upgraded to 1.6.1 and fixed my IE issues, but it broke my radio buttons. On my page (http://www.riverviewbiblecamp.com/menu.php) I've got radio... -
Access inside the windows of an accordion
Another question about my menu: this menu is on the left side of the screen. on the right side, i have an accordion, which is inside a component :... -
bdeen #2
Re: Set focus to control in panel inside accordion
have you tried using tabIndex? I believe you will need to give the accordion a
tabIndex as well so that since you selected it, it has focus.
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" >
<mx:TextInput tabIndex="1"/>
<mx:Accordion height="250" width="100%"
change="event.target.selectedItem.setFocus();" tabIndex="2">
<mx:Form defaultButton="btn1" width="100%" tabIndex="3">
<mx:FormItem label="Name">
<mx:TextInput tabIndex="4"/>
</mx:FormItem>
<mx:FormItem>
<mx:Button label="button" id="btn1" tabIndex="5"/>
</mx:FormItem>
</mx:Form>
<mx:Form defaultButton="btn2" width="100%" tabIndex="6">
<mx:FormItem label="Name">
<mx:TextInput tabIndex="7"/>
</mx:FormItem>
<mx:FormItem>
<mx:Button label="button" id="btn2" tabIndex="8"/>
</mx:FormItem>
</mx:Form>
</mx:Accordion>
<mx:Button label="last" tabIndex="9"/>
</mx:Application>
bdeen Guest
-
AnoPres #3
Re: Set focus to control in panel inside accordion
Thanks. Not exactly what I was looking to do, but it should work just fine.
AnoPres Guest



Reply With Quote

