<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Setting a custom tool tip field on a ButtonBar control in Flex</title>
	<link>http://blog.flexexamples.com/2008/04/27/setting-a-custom-tool-tip-field-on-a-buttonbar-control-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 21 Nov 2008 06:10:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Craig Hollabaugh</title>
		<link>http://blog.flexexamples.com/2008/04/27/setting-a-custom-tool-tip-field-on-a-buttonbar-control-in-flex/#comment-12355</link>
		<author>Craig Hollabaugh</author>
		<pubDate>Tue, 29 Apr 2008 08:52:32 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/27/setting-a-custom-tool-tip-field-on-a-buttonbar-control-in-flex/#comment-12355</guid>
		<description>Peter,
Thanks for the  add-on example. You are correct, I meant a ToggleButtonBar in my comment above. I checked your ToggleButtonBar category, you're using the default    skin hilighting (a little blue border and shade darker background). Is is possible to change the background for the selected button? The flex docs mention selectedButtonTextStyleName but nothing about selectedButtonStyleName. I didn't see anything in the 'Style Explorer' either. 

Thanks for your help. I read/compile/learn from your examples everyday.
Craig</description>
		<content:encoded><![CDATA[<p>Peter,<br />
Thanks for the  add-on example. You are correct, I meant a ToggleButtonBar in my comment above. I checked your ToggleButtonBar category, you&#8217;re using the default    skin hilighting (a little blue border and shade darker background). Is is possible to change the background for the selected button? The flex docs mention selectedButtonTextStyleName but nothing about selectedButtonStyleName. I didn&#8217;t see anything in the &#8216;Style Explorer&#8217; either. </p>
<p>Thanks for your help. I read/compile/learn from your examples everyday.<br />
Craig</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/04/27/setting-a-custom-tool-tip-field-on-a-buttonbar-control-in-flex/#comment-12348</link>
		<author>peterd</author>
		<pubDate>Tue, 29 Apr 2008 00:55:05 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/27/setting-a-custom-tool-tip-field-on-a-buttonbar-control-in-flex/#comment-12348</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2008/04/27/setting-a-custom-tool-tip-field-on-a-buttonbar-control-in-flex/#comment-12347" rel="nofollow"&gt;Craig Hollabaugh&lt;/a&gt;,

Does this work for you:
&lt;pre class="code"&gt;
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&#62;

    &#60;mx:Style&#62;
        .allButtons4 {
            /* Creates a gradient from red/orange when button is in the
               "out" state. Creates a gradient from green/blue when
               button is in the "over" state. */
            fillColors: red, haloOrange, haloGreen, haloBlue;
            fillAlphas: 1.0, 0.6, 1.0, 0.6;
            
            color: white;
            textRollOverColor: white;
        }
    &#60;/mx:Style&#62;

    &#60;mx:ButtonBar id="buttonBar" buttonStyleName="allButtons4"&#62;
        &#60;mx:dataProvider&#62;
            &#60;mx:Array&#62;
                &#60;mx:Object label="Button" /&#62;
                &#60;mx:Object label="ButtonBar" /&#62;
                &#60;mx:Object label="CheckBox" /&#62;
                &#60;mx:Object label="ColorPicker" /&#62;
                &#60;mx:Object label="ComboBox" /&#62;
            &#60;/mx:Array&#62;
        &#60;/mx:dataProvider&#62;
    &#60;/mx:ButtonBar&#62;

&#60;/mx:Application&#62;
&lt;/pre&gt;

Modified slightly from, &lt;a href="http://blog.flexexamples.com/2008/01/02/changing-the-fill-colors-of-a-buttonbar-control-in-flex/" rel="nofollow"&gt;"Changing the fill colors of a ButtonBar control in Flex"&lt;/a&gt;.

I don't believe a ButtonBar control has a "selected button", per se. You may want to use the ToggleButtonBar instead. For more examples on the ToggleButtonBar control, see the &lt;a href="http://blog.flexexamples.com/category/togglebuttonbar/" rel="nofollow"&gt;&lt;u&gt;ToggleButtonBar&lt;/u&gt;&lt;/a&gt; category archive.

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2008/04/27/setting-a-custom-tool-tip-field-on-a-buttonbar-control-in-flex/#comment-12347" rel="nofollow">Craig Hollabaugh</a>,</p>
<p>Does this work for you:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        .allButtons4 {
            /* Creates a gradient from red/orange when button is in the
               "out" state. Creates a gradient from green/blue when
               button is in the "over" state. */
            fillColors: red, haloOrange, haloGreen, haloBlue;
            fillAlphas: 1.0, 0.6, 1.0, 0.6;

            color: white;
            textRollOverColor: white;
        }
    &lt;/mx:Style&gt;

    &lt;mx:ButtonBar id="buttonBar" buttonStyleName="allButtons4"&gt;
        &lt;mx:dataProvider&gt;
            &lt;mx:Array&gt;
                &lt;mx:Object label="Button" /&gt;
                &lt;mx:Object label="ButtonBar" /&gt;
                &lt;mx:Object label="CheckBox" /&gt;
                &lt;mx:Object label="ColorPicker" /&gt;
                &lt;mx:Object label="ComboBox" /&gt;
            &lt;/mx:Array&gt;
        &lt;/mx:dataProvider&gt;
    &lt;/mx:ButtonBar&gt;

&lt;/mx:Application&gt;
</pre>
<p>Modified slightly from, <a href="http://blog.flexexamples.com/2008/01/02/changing-the-fill-colors-of-a-buttonbar-control-in-flex/" rel="nofollow">&#8220;Changing the fill colors of a ButtonBar control in Flex&#8221;</a>.</p>
<p>I don&#8217;t believe a ButtonBar control has a &#8220;selected button&#8221;, per se. You may want to use the ToggleButtonBar instead. For more examples on the ToggleButtonBar control, see the <a href="http://blog.flexexamples.com/category/togglebuttonbar/" rel="nofollow"><u>ToggleButtonBar</u></a> category archive.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Hollabaugh</title>
		<link>http://blog.flexexamples.com/2008/04/27/setting-a-custom-tool-tip-field-on-a-buttonbar-control-in-flex/#comment-12347</link>
		<author>Craig Hollabaugh</author>
		<pubDate>Tue, 29 Apr 2008 00:18:47 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/27/setting-a-custom-tool-tip-field-on-a-buttonbar-control-in-flex/#comment-12347</guid>
		<description>Thanks for the tooltip tip. 

Please consider an example that increases the buttonbar's selected button. The skin color border hilighting isn't enough contrast. I can't figure out how to change the style of the selected button. I may have to use different icons in the provider.</description>
		<content:encoded><![CDATA[<p>Thanks for the tooltip tip. </p>
<p>Please consider an example that increases the buttonbar&#8217;s selected button. The skin color border hilighting isn&#8217;t enough contrast. I can&#8217;t figure out how to change the style of the selected button. I may have to use different icons in the provider.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
