Hi Guys
I am trying to make the focus changed consistently to different components in
my app but it is showing different behavior when user presses tab. Few things
are happening here if one of the radio button from the first radio group has
been selected then pressing tab button will keep on cycling through first 3
components and if the radio buttons are not selected then changing focus on the
tab pressing works fine, All I need is that whenever user presses tab key, it
changes the focus consistently through all of the components(doesn't matter if
the radio button is selected or not) and the same behavior will be followed
when user presses the shift+Tab.
Anyone has any idea about whats going on here,Please help me in fixing this
issue,
Thanks a lot
geekyDeveloper
/***************CODE*******************/
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:VBox width="100%" height="100%"
paddingTop="5" paddingRight="5" paddingBottom="5"
paddingLeft="5">
<mx:Label text="NSM Settings" styleName="textLarge"
fontStyle="italic" width="200"/>
<mx:Form id="formMainContainer" width="100%" verticalGap="5"
indicatorGap="25" labelWidth="200"
paddingTop="0" paddingRight="0" paddingBottom="0"
paddingLeft="0" height="262">
<!-- Unit Settings -->
<mx:FormItem label="Unit Settings"
labelStyleName="textLarge" width="100%" height="25" paddingTop="10">
<mx:HRule width="100%" height="2"/>
</mx:FormItem>
<mx:FormItem label="Unit Role"
labelStyleName="textMedium">
<mx:RadioButtonGroup id="unitRoleGroup" />
<mx:HBox>
<mx:RadioButton label="Manager"
group="{unitRoleGroup}" styleName="textMedium"/>
<mx:RadioButton label="Member"
group="{unitRoleGroup}" styleName="textMedium"/>
</mx:HBox>
</mx:FormItem>
<mx:FormItem label="Unit Name" labelStyleName="textMedium">
<mx:TextInput id="txtUnitName"
styleName="inputTextMedium" restrict="a-zA-Z0-9_"
/>
</mx:FormItem>
<mx:FormItem label="Time Zone" labelStyleName="textMedium">
<mx:ComboBox id="cboTimeZone" />
</mx:FormItem>
<!-- Network Settings -->
<mx:FormItem id="networkSettingsForm" >
<mx:RadioButtonGroup id="networkSettingsGroup"/>
<mx:HBox>
<mx:RadioButton id="radioButtonDHCP"
label="DHCP" group="{networkSettingsGroup}" styleName="textMedium"/>
<mx:RadioButton label="Static"
group="{networkSettingsGroup}" styleName="textMedium"/>
</mx:HBox>
</mx:FormItem>
<mx:FormItem label="Label">
<mx:Button label="Button"/>
</mx:FormItem>
<mx:FormItem label="Label">
<mx:Button label="Button"/>
</mx:FormItem>
<mx:FormItem label="Label">
<mx:Button label="Button"/>
</mx:FormItem>
</mx:Form>
</mx:VBox>
</mx:Application>