Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Language Found: English
Description
Steps to reproduce:
1. Extend Toggle button to create your own button implementation
2. use your button implementation in a custom TabBar skin
3. set selectionRequired=true on your tab bar
Actual Results:
You are able to deselect all tabs
Expected Results:
You are not able to deselect all tabs
Workaround (if any):
add this code to your button:
override protected function buttonReleased() : void
{
if ( selected )return;
super.buttonReleased();
}
This does not mean that selectionRequired works - it means you can never deselect your button just by clicking on it. It there was a IButtonBarButton then tabbar could set allowDeselection on your button to toggle this behaviour - just like ButtonBarButton does but you would no longer have to extend that class to get this functionality.