<?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: Setting a selection disabled color on a ComboBox control&#8217;s dropdown menu in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/</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: Amit Tamse</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-10279</link>
		<dc:creator>Amit Tamse</dc:creator>
		<pubDate>Wed, 28 Dec 2011 10:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-10279</guid>
		<description>Hi Peter,
How can we give border styling to the ComboBox as there is no property for border skin as in other components?</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
How can we give border styling to the ComboBox as there is no property for border skin as in other components?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jovica Aleksic</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-5744</link>
		<dc:creator>Jovica Aleksic</dc:creator>
		<pubDate>Sun, 13 Sep 2009 14:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-5744</guid>
		<description>Ah, and of course you need to specify the &lt;code&gt;downSkin&lt;/code&gt; for your combobox:

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;mx:ComboBox
	downSkin=&quot;{DownSkin}&quot; dataProvider=&quot;{myDataProvider}&quot;&gt;
&lt;/mx:ComboBox&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ah, and of course you need to specify the <code>downSkin</code> for your combobox:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ComboBox</span></span>
<span style="color: #000000;">	downSkin=<span style="color: #ff0000;">&quot;{DownSkin}&quot;</span> dataProvider=<span style="color: #ff0000;">&quot;{myDataProvider}&quot;</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ComboBox</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Jovica Aleksic</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-5743</link>
		<dc:creator>Jovica Aleksic</dc:creator>
		<pubDate>Sun, 13 Sep 2009 14:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-5743</guid>
		<description>@Klaus Busse&#039;s question:
Even a openDuration of 0 will cause the short bright flicker.The key to this is using a custom downSkin.
In my case it was fine to extend UIComponent for that, maybe it would be more correct to use ProgrammaticSkin, however this solution worked fine for me:

&lt;pre lang=&quot;actionscript3&quot;&gt;
package  
{ 
	import mx.core.UIComponent;
	
	
	public class DownSkin extends UIComponent
	{
		public function DownSkin()
		{
			super();
		}
		
		private var downBgColor:Number = 0x222222;
		
		protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void 
		{
		   super.updateDisplayList(unscaledWidth, unscaledHeight);			
			
			var backgroundFillColor:Number;	
			var cornerRadius:Number = getStyle(&quot;cornerRadius&quot;);
			var backgroundAlpha:Number = getStyle(&quot;backgroundAlpha&quot;);
			
			graphics.clear();
			
			switch (name) { 
				case &quot;downSkin&quot;:
					backgroundFillColor = this.downBgColor;
					break; 
			}
			
			graphics.beginFill(backgroundFillColor);
			drawRoundRect(0,0,unscaledWidth,unscaledHeight,{tl: cornerRadius, tr: cornerRadius, bl: cornerRadius, br: cornerRadius},
			 				backgroundFillColor,backgroundAlpha);
			graphics.endFill();
			 
		 }
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Klaus Busse&#8217;s question:<br />
Even a openDuration of 0 will cause the short bright flicker.The key to this is using a custom downSkin.<br />
In my case it was fine to extend UIComponent for that, maybe it would be more correct to use ProgrammaticSkin, however this solution worked fine for me:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span>  
<span style="color: #000000;">&#123;</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>UIComponent<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> DownSkin <span style="color: #0033ff; font-weight: bold;">extends</span> UIComponent
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> DownSkin<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;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> downBgColor<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = 0x222222<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">protected</span> override <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>			
&nbsp;
			<span style="color: #6699cc; font-weight: bold;">var</span> backgroundFillColor<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>	
			<span style="color: #6699cc; font-weight: bold;">var</span> cornerRadius<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">getStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;cornerRadius&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> backgroundAlpha<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">getStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;backgroundAlpha&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">switch</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">name</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> 
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #990000;">&quot;downSkin&quot;</span><span style="color: #000066; font-weight: bold;">:</span>
					backgroundFillColor = <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>downBgColor<span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span> 
			<span style="color: #000000;">&#125;</span>
&nbsp;
			<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>backgroundFillColor<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">drawRoundRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span>unscaledWidth<span style="color: #000066; font-weight: bold;">,</span>unscaledHeight<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000;">&#123;</span>tl<span style="color: #000066; font-weight: bold;">:</span> cornerRadius<span style="color: #000066; font-weight: bold;">,</span> tr<span style="color: #000066; font-weight: bold;">:</span> cornerRadius<span style="color: #000066; font-weight: bold;">,</span> bl<span style="color: #000066; font-weight: bold;">:</span> cornerRadius<span style="color: #000066; font-weight: bold;">,</span> br<span style="color: #000066; font-weight: bold;">:</span> cornerRadius<span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">,</span>
			 				backgroundFillColor<span style="color: #000066; font-weight: bold;">,</span>backgroundAlpha<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		 <span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: meir</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-3479</link>
		<dc:creator>meir</dc:creator>
		<pubDate>Wed, 27 Aug 2008 07:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-3479</guid>
		<description>Thanks so much,

Meir</description>
		<content:encoded><![CDATA[<p>Thanks so much,</p>
<p>Meir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-3478</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Tue, 26 Aug 2008 20:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-3478</guid>
		<description>meir,

In order to do that, you&#039;ll need to define an item renderer. For more information, and lots of examples, check out the item renderers section of Alex Harui&#039;s blog at http://blogs.adobe.com/aharui/item_renderers/

Peter</description>
		<content:encoded><![CDATA[<p>meir,</p>
<p>In order to do that, you&#8217;ll need to define an item renderer. For more information, and lots of examples, check out the item renderers section of Alex Harui&#8217;s blog at <a href="http://blogs.adobe.com/aharui/item_renderers/" rel="nofollow">http://blogs.adobe.com/aharui/item_renderers/</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: meir</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-3477</link>
		<dc:creator>meir</dc:creator>
		<pubDate>Tue, 26 Aug 2008 20:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-3477</guid>
		<description>Do you guys know how will it be possible to have a dropdown menu with checkbox next to each option in the dropdown?</description>
		<content:encoded><![CDATA[<p>Do you guys know how will it be possible to have a dropdown menu with checkbox next to each option in the dropdown?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-3476</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Thu, 17 Jul 2008 07:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-3476</guid>
		<description>Shahaji S.S.,

Yeah, I noticed this shortly after I posted the example. The solution is to disable keyboard navigation for the Flex ComboBox control. And as luck would have it, that was the subject of the very next blog post, &lt;a href=&quot;http://blog.flexexamples.com/2008/07/16/disabling-keyboard-navigation-on-the-combobox-control-in-flex/&quot; rel=&quot;nofollow&quot;&gt;&quot;Disabling keyboard navigation on the ComboBox control in Flex&quot;&lt;/a&gt;.

Good catch!

Peter</description>
		<content:encoded><![CDATA[<p>Shahaji S.S.,</p>
<p>Yeah, I noticed this shortly after I posted the example. The solution is to disable keyboard navigation for the Flex ComboBox control. And as luck would have it, that was the subject of the very next blog post, <a href="http://blog.flexexamples.com/2008/07/16/disabling-keyboard-navigation-on-the-combobox-control-in-flex/" rel="nofollow">&#8220;Disabling keyboard navigation on the ComboBox control in Flex&#8221;</a>.</p>
<p>Good catch!</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shahaji S.S.</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-3475</link>
		<dc:creator>Shahaji S.S.</dc:creator>
		<pubDate>Thu, 17 Jul 2008 06:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-3475</guid>
		<description>Dear All,
If you see carefully, there is one bug in this,
Put your finger on downarrow, click on combobox and immidiately press downarrow, you are able to change the combo value after checkbox state is disabled.

what will be the solution????
shahazee</description>
		<content:encoded><![CDATA[<p>Dear All,<br />
If you see carefully, there is one bug in this,<br />
Put your finger on downarrow, click on combobox and immidiately press downarrow, you are able to change the combo value after checkbox state is disabled.</p>
<p>what will be the solution????<br />
shahazee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mielno</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-3474</link>
		<dc:creator>Mielno</dc:creator>
		<pubDate>Wed, 16 Jul 2008 20:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-3474</guid>
		<description>Thanks for all. I&#039;ll try it and write something more later. Bye - Mielno</description>
		<content:encoded><![CDATA[<p>Thanks for all. I&#8217;ll try it and write something more later. Bye &#8211; Mielno</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/comment-page-1/#comment-3473</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Wed, 16 Jul 2008 14:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/15/setting-a-selection-disabled-color-on-a-combobox-controls-dropdown-menu-in-flex/#comment-3473</guid>
		<description>Klaus Busse,

One workaround is to set the ComboBox control&#039;s &lt;code&gt;openDuration&lt;/code&gt; style to 0 so that the ComboBox opens immediately instead of animating down.

Peter</description>
		<content:encoded><![CDATA[<p>Klaus Busse,</p>
<p>One workaround is to set the ComboBox control&#8217;s <code>openDuration</code> style to 0 so that the ComboBox opens immediately instead of animating down.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

