Hi Gray.
This is a bit of a hack, but it does what you're looking for.
-TH
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
<mx:Script>
<![CDATA[
import mx.events.ItemClickEvent;
import mx.controls.Button;
private function init():void {
Button(tbb2.getChildAt(0)).selected = false;
}
private function topButtonsHandler(event:ItemClickEvent):void {
Button(tbb2.getChildAt(0)).selected = false;
Button(tbb2.getChildAt(1)).selected = false;
Button(tbb2.getChildAt(2)).selected = false;
}
private function bottomButtonsHandler(event:ItemClickEvent):void {
Button(tbb1.getChildAt(0)).selected = false;
Button(tbb1.getChildAt(1)).selected = false;
Button(tbb1.getChildAt(2)).selected = false;
}
]]>
</mx:Script>
<mx:VBox verticalGap="0">
<mx:ToggleButtonBar id="tbb1" borderStyle="solid" width="300"
itemClick="topButtonsHandler(event);">
<mx:dataProvider>
<mx:Array>
<mx:String>Flash</mx:String>
<mx:String>Director</mx:String>
<mx:String>ColdFusion</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:ToggleButtonBar>
<mx:ToggleButtonBar id="tbb2" borderStyle="solid" width="300"
itemClick="bottomButtonsHandler(event);"
creationComplete="init()">
<mx:dataProvider>
<mx:Array>
<mx:String>Dreamweaver</mx:String>
<mx:String>Breeze</mx:String>
<mx:String>Fireworks</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:ToggleButtonBar>
</mx:VBox>
</mx:Application>
--- In flexcoders@yahoogroups.com, "graysonpierce" <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm new to the list. TIA.
>
> I'm working in a space constrained environment and I'd like to have
> Flex 2 draw a ToggleButtonBar on multiple lines. I played around with
> width/height to no avail.
>
> Thank you,
>
> Gray
>
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___