<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Globally disabling tool tips using the Flex ToolTipManager class</title>
	<atom:link href="http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/comment-page-1/#comment-8044</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 01 Jul 2010 00:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/#comment-8044</guid>
		<description>Or, if you want a quicker/cheaper workaround, you could just toggle the ToolTipManager &lt;code&gt;enabled&lt;/code&gt; property in a &lt;code&gt;rollOver&lt;/code&gt;/&lt;code&gt;rollOut&lt;/code&gt; event handler, as seen in the following example:
&lt;pre lang=&quot;mxml&quot;&gt;

&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;
    
    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.managers.ToolTipManager;
            
            protected function bBar_rollOverHandler(evt:MouseEvent):void {
                ToolTipManager.enabled = false;
            }
            
            protected function bBar_rollOutHandler(event:MouseEvent):void {
                ToolTipManager.enabled = true;
            }
        ]]&gt;
    &lt;/mx:Script&gt;
    
    &lt;mx:ButtonBar id=&quot;bBar&quot;
            width=&quot;400&quot;
            rollOver=&quot;bBar_rollOverHandler(event);&quot;
            rollOut=&quot;bBar_rollOutHandler(event);&quot;&gt;
        &lt;mx:dataProvider&gt;
            &lt;mx:ArrayCollection source=&quot;[The quick brown fox,Quick brown fox jumps,Brown fox jumps over,Fox jumps over the]&quot; /&gt;
        &lt;/mx:dataProvider&gt;
    &lt;/mx:ButtonBar&gt;
    
    &lt;mx:Button label=&quot;The quick brown fox jumps over the&quot; width=&quot;100&quot; /&gt;
    
&lt;/mx:Application&gt; 
&lt;/pre&gt;

I presume you could also easily extend the ButtonBar class and do this globally for all custom ButtonBar controls.

Peter</description>
		<content:encoded><![CDATA[<p>Or, if you want a quicker/cheaper workaround, you could just toggle the ToolTipManager <code>enabled</code> property in a <code>rollOver</code>/<code>rollOut</code> event handler, as seen in the following example:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;">&nbsp;
<span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.managers.ToolTipManager;</span>
&nbsp;
<span style="color: #339933;">            protected function bBar_rollOverHandler(evt:MouseEvent):void {</span>
<span style="color: #339933;">                ToolTipManager.enabled = false;</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            protected function bBar_rollOutHandler(event:MouseEvent):void {</span>
<span style="color: #339933;">                ToolTipManager.enabled = true;</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ButtonBar</span> id=<span style="color: #ff0000;">&quot;bBar&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;400&quot;</span></span>
<span style="color: #000000;">            rollOver=<span style="color: #ff0000;">&quot;bBar_rollOverHandler(event);&quot;</span></span>
<span style="color: #000000;">            rollOut=<span style="color: #ff0000;">&quot;bBar_rollOutHandler(event);&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ArrayCollection</span> source=<span style="color: #ff0000;">&quot;[The quick brown fox,Quick brown fox jumps,Brown fox jumps over,Fox jumps over the]&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ButtonBar</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;The quick brown fox jumps over the&quot;</span> width=<span style="color: #ff0000;">&quot;100&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>I presume you could also easily extend the ButtonBar class and do this globally for all custom ButtonBar controls.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/comment-page-1/#comment-8038</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 30 Jun 2010 15:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/#comment-8038</guid>
		<description>@DJ,

I found a solution, but I&#039;m not sure it is ideal as I had to create a custom ButtonBar and ButtonBarButton component and override some default Button logic:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        xmlns:comps=&quot;comps.*&quot;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;
    
    &lt;mx:Array id=&quot;arr&quot;&gt;
        &lt;mx:Object label=&quot;The quick brown fox&quot; foo=&quot;One&quot; /&gt;
        &lt;mx:Object label=&quot;Quick brown fox jumps&quot; foo=&quot;two&quot; /&gt;
        &lt;mx:Object label=&quot;Brown fox jumps over&quot; foo=&quot;three&quot; /&gt;
        &lt;mx:Object label=&quot;Fox jumps over the&quot; foo=&quot;fopir&quot; /&gt;
        &lt;mx:Object label=&quot;Jumps over the lazy&quot; foo=&quot;five&quot; /&gt;
        &lt;mx:Object label=&quot;Over the lazy dog&quot; foo=&quot;six&quot; /&gt;
    &lt;/mx:Array&gt;
    
    &lt;mx:Form&gt;
        &lt;mx:FormItem label=&quot;default ButtonBar:&quot;&gt;
            &lt;mx:ButtonBar id=&quot;bBar&quot; dataProvider=&quot;{arr}&quot; width=&quot;400&quot; /&gt;
        &lt;/mx:FormItem&gt;
        &lt;mx:FormItem label=&quot;CustomButtonBar:&quot;&gt;
            &lt;comps:CustomButtonBar id=&quot;cBBar&quot; dataProvider=&quot;{arr}&quot; width=&quot;400&quot; /&gt;
        &lt;/mx:FormItem&gt;
    &lt;/mx:Form&gt;
    
&lt;/mx:Application&gt;
&lt;/pre&gt;

The custom ButtonBar, &lt;em&gt;comps/CustomButtonBar.as&lt;/em&gt;, is as follows:
&lt;pre lang=&quot;actionscript3&quot;&gt;
package comps {
    import comps.CustomButtonBarButton;
    
    import mx.controls.ButtonBar;
    import mx.core.ClassFactory;
    import mx.core.mx_internal;
    
    public class CustomButtonBar extends ButtonBar {
        public function CustomButtonBar() {
            super();
            mx_internal::navItemFactory = new ClassFactory(CustomButtonBarButton);
        }
    }
}
&lt;/pre&gt;

And the custom ButtonBarButton, &lt;em&gt;comps/CustomButtonBarButton.as&lt;/em&gt;, is as follows:
&lt;pre lang=&quot;actionscript3&quot;&gt;
package comps {
    import mx.controls.buttonBarClasses.*;
    
    public class CustomButtonBarButton extends ButtonBarButton {
        public function CustomButtonBarButton() {
            super();
        }
        
        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
            super.updateDisplayList(unscaledWidth, unscaledHeight);
            super.toolTip = null;
        }
    }
}
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@DJ,</p>
<p>I found a solution, but I&#8217;m not sure it is ideal as I had to create a custom ButtonBar and ButtonBarButton component and override some default Button logic:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        xmlns:comps=<span style="color: #ff0000;">&quot;comps.*&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Array</span> id=<span style="color: #ff0000;">&quot;arr&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;The quick brown fox&quot;</span> foo=<span style="color: #ff0000;">&quot;One&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;Quick brown fox jumps&quot;</span> foo=<span style="color: #ff0000;">&quot;two&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;Brown fox jumps over&quot;</span> foo=<span style="color: #ff0000;">&quot;three&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;Fox jumps over the&quot;</span> foo=<span style="color: #ff0000;">&quot;fopir&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;Jumps over the lazy&quot;</span> foo=<span style="color: #ff0000;">&quot;five&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> label=<span style="color: #ff0000;">&quot;Over the lazy dog&quot;</span> foo=<span style="color: #ff0000;">&quot;six&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Array</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Form</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:FormItem</span> label=<span style="color: #ff0000;">&quot;default ButtonBar:&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ButtonBar</span> id=<span style="color: #ff0000;">&quot;bBar&quot;</span> dataProvider=<span style="color: #ff0000;">&quot;{arr}&quot;</span> width=<span style="color: #ff0000;">&quot;400&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:FormItem</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:FormItem</span> label=<span style="color: #ff0000;">&quot;CustomButtonBar:&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;comps:CustomButtonBar</span> id=<span style="color: #ff0000;">&quot;cBBar&quot;</span> dataProvider=<span style="color: #ff0000;">&quot;{arr}&quot;</span> width=<span style="color: #ff0000;">&quot;400&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:FormItem</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Form</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>The custom ButtonBar, <em>comps/CustomButtonBar.as</em>, is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> comps <span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> comps<span style="color: #000066; font-weight: bold;">.</span>CustomButtonBarButton<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
    <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.</span>ButtonBar<span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>core<span style="color: #000066; font-weight: bold;">.</span>ClassFactory<span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>core<span style="color: #000066; font-weight: bold;">.</span>mx_internal<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
    <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> CustomButtonBar <span style="color: #0033ff; font-weight: bold;">extends</span> ButtonBar <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> CustomButtonBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            mx_internal<span style="color: #000066; font-weight: bold;">::</span>navItemFactory = <span style="color: #0033ff; font-weight: bold;">new</span> ClassFactory<span style="color: #000000;">&#40;</span>CustomButtonBarButton<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>And the custom ButtonBarButton, <em>comps/CustomButtonBarButton.as</em>, is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> comps <span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.</span>buttonBarClasses<span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
    <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> CustomButtonBarButton <span style="color: #0033ff; font-weight: bold;">extends</span> ButtonBarButton <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> CustomButtonBarButton<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        override <span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> updateDisplayList<span style="color: #000000;">&#40;</span>unscaledWidth<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> unscaledHeight<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000066; font-weight: bold;">.</span>updateDisplayList<span style="color: #000000;">&#40;</span>unscaledWidth<span style="color: #000066; font-weight: bold;">,</span> unscaledHeight<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000066; font-weight: bold;">.</span>toolTip = <span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DJ</title>
		<link>http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/comment-page-1/#comment-8035</link>
		<dc:creator>DJ</dc:creator>
		<pubDate>Wed, 30 Jun 2010 12:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/#comment-8035</guid>
		<description>Hello Peter,

How can i disable the tooltips on the buttons of the buttonbar / togglebuttonbars. I don&#039;t want to disable all the  tooltips of the  complete application. I have  tried numors things but nothing seems to work for me.

I have tried tooltip = &quot;null&quot; on the  togglebuttonbar but it doesn&#039;t effect the buttons on the togglebuttonbar.

do you know how to do this?</description>
		<content:encoded><![CDATA[<p>Hello Peter,</p>
<p>How can i disable the tooltips on the buttons of the buttonbar / togglebuttonbars. I don&#8217;t want to disable all the  tooltips of the  complete application. I have  tried numors things but nothing seems to work for me.</p>
<p>I have tried tooltip = &#8220;null&#8221; on the  togglebuttonbar but it doesn&#8217;t effect the buttons on the togglebuttonbar.</p>
<p>do you know how to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/comment-page-1/#comment-942</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Mon, 05 Jan 2009 19:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/03/globally-disabling-tool-tips-using-the-flex-tooltipmanager-class/#comment-942</guid>
		<description>Took forever for me to search the internet to disable tooltips, and now I see its emberassingly simple. :-)
Thank you for posting.</description>
		<content:encoded><![CDATA[<p>Took forever for me to search the internet to disable tooltips, and now I see its emberassingly simple. :-)<br />
Thank you for posting.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

