The following example shows how you can toggle buttons in a Flex ToggleButtonBar control by setting the Boolean toggleOnClick property.
Full code after the jump.
{ 4 comments }
Just a bunch of Adobe Flex Examples
From the category archives:
by Peter deHaan on January 21, 2009
The following example shows how you can toggle buttons in a Flex ToggleButtonBar control by setting the Boolean toggleOnClick property.
Full code after the jump.
Tagged as: toggleOnClick
{ 4 comments }
by Peter deHaan on November 8, 2008
The following example shows how you can set the text color for the selected button in a Flex ToggleButtonBar control by setting the selectedButtonTextStyleName style.
Full code after the jump.
Tagged as: selectedButtonTextStyleName
{ 1 comment }
by Peter deHaan on January 14, 2008
The following example shows how you can set the font weight of a label on LinkBar control and ToggleButton control in Flex by setting the linkButtonStyleName style and buttonStyleName style respectively.
Full code after the jump.
Tagged as: buttonStyleName, fontWeight, linkButtonStyleName
{ 3 comments }
by Peter deHaan on August 22, 2007
The following example creates a ToggleButtonBar control in Flex and sets its toggleOnClick property to true.
According to the Flex 2.0.1 documentation:
If you set the
toggleOnClickproperty of the ToggleButtonBar container totrue, selecting the currently selected button deselects it. By default thetoggleOnClickproperty is set tofalse.
You can check out the different behaviors of the toggleOnClick property by selecting or deselecting the check box in the upper left corner. Likewise, you can change the ToggleButtonBar control’s direction property by changing the selected value in the combo box in the upper-right corner. If the toggleOnClick property is set to true and you deselect a button in the ToggleButtonBar control, the ToggleButtonBar control’s selectedIndex property is set to -1 and the Flex application sets the ViewStack container’s visible property to false.
Full code after the jump.
Tagged as: toggleOnClick
{ 0 comments }
Get smart with the Thesis WordPress Theme from DIYthemes.