<?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 the icon color on a ComboBox control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 14:19:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/comment-page-1/#comment-3438</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 24 Mar 2009 15:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/#comment-3438</guid>
		<description>For a full example of removing the vertical separator line on a Flex ComboBox control, see &lt;a href=&quot;http://blog.flexexamples.com/2009/03/23/removing-the-vertical-separator-from-the-combobox-control-in-flex/&quot; rel=&quot;nofollow&quot;&gt;&quot;Removing the vertical separator from the ComboBox control in Flex&quot;&lt;/a&gt;.

Peter</description>
		<content:encoded><![CDATA[<p>For a full example of removing the vertical separator line on a Flex ComboBox control, see <a href="http://blog.flexexamples.com/2009/03/23/removing-the-vertical-separator-from-the-combobox-control-in-flex/" rel="nofollow">&#8220;Removing the vertical separator from the ComboBox control in Flex&#8221;</a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/comment-page-1/#comment-3437</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 24 Mar 2009 00:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/#comment-3437</guid>
		<description>jeanette stallons,

I believe to style that line you&#039;ll need to create your own custom skin and draw/modify the line using the drawing API.
The default ComboBox skin class is \frameworks\projects\framework\src\mx\skins\halo\ComboBoxArrowSkin.as, and the line is drawn in a few places (but seemingly always in an &lt;code&gt;if (!arrowOnly){...}&lt;/code&gt; block):
&lt;pre class=&quot;code&quot;&gt;
if (!arrowOnly)
{
    // line
    drawRoundRect(
        w - 22, 4, 1, h - 8, 0,
        borderColor, 1);
    drawRoundRect(
        w - 21, 4, 1, h - 8, 0,
        0xFFFFFF, 0.2);
}
&lt;/pre&gt;

So in this example above (taken from the default skin file), there are two lines that get drawn. The first &lt;code&gt;drawRoundRect()&lt;/code&gt; method call draws a vertical line with the specified &lt;code&gt;borderColor&lt;/code&gt; style. The second &lt;code&gt;drawRoundRect()&lt;/code&gt; method call draws a 20% alpha white shadow just to the right of the first line.

If you want to remove the vertical line completely, just delete each of the &lt;code&gt;if (!arrowOnly){...}&lt;/code&gt; blocks in each of the &lt;code&gt;case&lt;/code&gt; statements. Also, from the looks of it, the &lt;code&gt;borderColor&lt;/code&gt; may be getting overridden by the &lt;code&gt;dropdownBorderColor&lt;/code&gt; if the ComboBox control is in an error state (for example, the &lt;code&gt;errorString&lt;/code&gt; property is not an empty string).

Good question though, I&#039;ll see if I can convert this into a full blog example where I remove that vertical separator line completely.

Peter</description>
		<content:encoded><![CDATA[<p>jeanette stallons,</p>
<p>I believe to style that line you&#8217;ll need to create your own custom skin and draw/modify the line using the drawing API.<br />
The default ComboBox skin class is \frameworks\projects\framework\src\mx\skins\halo\ComboBoxArrowSkin.as, and the line is drawn in a few places (but seemingly always in an <code>if (!arrowOnly){...}</code> block):</p>
<pre class="code">
if (!arrowOnly)
{
    // line
    drawRoundRect(
        w - 22, 4, 1, h - 8, 0,
        borderColor, 1);
    drawRoundRect(
        w - 21, 4, 1, h - 8, 0,
        0xFFFFFF, 0.2);
}
</pre>
<p>So in this example above (taken from the default skin file), there are two lines that get drawn. The first <code>drawRoundRect()</code> method call draws a vertical line with the specified <code>borderColor</code> style. The second <code>drawRoundRect()</code> method call draws a 20% alpha white shadow just to the right of the first line.</p>
<p>If you want to remove the vertical line completely, just delete each of the <code>if (!arrowOnly){...}</code> blocks in each of the <code>case</code> statements. Also, from the looks of it, the <code>borderColor</code> may be getting overridden by the <code>dropdownBorderColor</code> if the ComboBox control is in an error state (for example, the <code>errorString</code> property is not an empty string).</p>
<p>Good question though, I&#8217;ll see if I can convert this into a full blog example where I remove that vertical separator line completely.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeanette stallons</title>
		<link>http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/comment-page-1/#comment-3436</link>
		<dc:creator>jeanette stallons</dc:creator>
		<pubDate>Mon, 23 Mar 2009 23:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/#comment-3436</guid>
		<description>hi peter. how do you change the separator color? the line to the left of the arrow?</description>
		<content:encoded><![CDATA[<p>hi peter. how do you change the separator color? the line to the left of the arrow?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/comment-page-1/#comment-3435</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Fri, 04 Jul 2008 03:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/03/setting-the-icon-color-on-a-combobox-control-in-flex/#comment-3435</guid>
		<description>Great example Peter! Customizing everything possible on a component even the little things always makes a projects that much better.</description>
		<content:encoded><![CDATA[<p>Great example Peter! Customizing everything possible on a component even the little things always makes a projects that much better.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

