<?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 the number of visible items in a ComboBox control&#8217;s dropdown menu in Flex</title>
	<link>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 21 Nov 2008 06:52:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13380</link>
		<author>peterd</author>
		<pubDate>Fri, 13 Jun 2008 16:51:06 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13380</guid>
		<description>Greg,

We'll leave the bug in community status. After the bug gets enough votes, somebody (else) at Adobe will have a look at the issue and see if it is a bug or if that is expected behavior.

Actually, another solution may be to something like the following:
&lt;pre class="code"&gt;
&#60;mx:LinearAxis id="yAxis" title="% of e-mail users accessing e-mail{'\\n'}eight or more times per month" /&#62;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Greg,</p>
<p>We&#8217;ll leave the bug in community status. After the bug gets enough votes, somebody (else) at Adobe will have a look at the issue and see if it is a bug or if that is expected behavior.</p>
<p>Actually, another solution may be to something like the following:</p>
<pre class="code">
&lt;mx:LinearAxis id="yAxis" title="% of e-mail users accessing e-mail{'\n'}eight or more times per month" /&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13379</link>
		<author>Greg</author>
		<pubDate>Fri, 13 Jun 2008 16:30:52 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13379</guid>
		<description>Interesting.  I hadn't thought of trying that.

Thanks for you help and quick replies!  Do I need to close that bug now, or will someone at Adobe do that?</description>
		<content:encoded><![CDATA[<p>Interesting.  I hadn&#8217;t thought of trying that.</p>
<p>Thanks for you help and quick replies!  Do I need to close that bug now, or will someone at Adobe do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13376</link>
		<author>peterd</author>
		<pubDate>Fri, 13 Jun 2008 13:47:37 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13376</guid>
		<description>Greg,

Thanks a lot. I commented on the bug with two possible workarounds:
&lt;blockquote&gt;
attached workaround.mxml with two possible workarounds. 

workaround #1 -- define the axis title in ActionScript: 
&lt;pre class="code"&gt;
[Bindable] 
public var str:String = "% of e-mail users accessing e-mail" + "\\n" + "eight or more times per month"; 
&lt;/pre&gt;

workaround#2 -- define the axis title in MXML using &#60;mx:String /&#62;:
&lt;pre class="code"&gt;
&#60;mx:String id="str"&#62;% of e-mail users accessing e-mail 
eight or more times per month&#60;/mx:String&#62;
&lt;/pre&gt;

Finally, assign the title title to the LinearAxis using binding:
&lt;pre class="code"&gt;
&#60;mx:verticalAxis&#62; 
    &#60;mx:LinearAxis id="yAxis" title="{str}" /&#62;
&#60;/mx:verticalAxis&#62;
&lt;/pre&gt;

&lt;/blockquote&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Greg,</p>
<p>Thanks a lot. I commented on the bug with two possible workarounds:</p>
<blockquote><p>
attached workaround.mxml with two possible workarounds. </p>
<p>workaround #1 &#8212; define the axis title in ActionScript: </p>
<pre class="code">
[Bindable]
public var str:String = "% of e-mail users accessing e-mail" + "\n" + "eight or more times per month";
</pre>
<p>workaround#2 &#8212; define the axis title in MXML using &lt;mx:String /&gt;:</p>
<pre class="code">
&lt;mx:String id="str"&gt;% of e-mail users accessing e-mail
eight or more times per month&lt;/mx:String&gt;
</pre>
<p>Finally, assign the title title to the LinearAxis using binding:</p>
<pre class="code">
&lt;mx:verticalAxis&gt;
    &lt;mx:LinearAxis id="yAxis" title="{str}" /&gt;
&lt;/mx:verticalAxis&gt;
</pre>
</blockquote>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13375</link>
		<author>Greg</author>
		<pubDate>Fri, 13 Jun 2008 13:18:25 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13375</guid>
		<description>Thanks for the quick reply.  Here's the link to the bug.  https://bugs.adobe.com/jira/browse/FLEXDMV-1783  I hope I've provided enough information.</description>
		<content:encoded><![CDATA[<p>Thanks for the quick reply.  Here&#8217;s the link to the bug.  <a href="https://bugs.adobe.com/jira/browse/FLEXDMV-1783" rel="nofollow">https://bugs.adobe.com/jira/browse/FLEXDMV-1783</a>  I hope I&#8217;ve provided enough information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13365</link>
		<author>peterd</author>
		<pubDate>Thu, 12 Jun 2008 19:10:05 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13365</guid>
		<description>Greg,

Interesting, can you please file a bug at http://bugs.adobe.com/flex/ (please include a simple test case, if possible -- it makes it a lot easier) and post the bug number here and a few of us here can subscribe and/or vote.

Thanks,
Peter</description>
		<content:encoded><![CDATA[<p>Greg,</p>
<p>Interesting, can you please file a bug at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a> (please include a simple test case, if possible &#8212; it makes it a lot easier) and post the bug number here and a few of us here can subscribe and/or vote.</p>
<p>Thanks,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13359</link>
		<author>Greg</author>
		<pubDate>Thu, 12 Jun 2008 19:03:45 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/06/11/setting-the-number-of-visible-items-in-a-combobox-controls-dropdown-menu-in-flex/#comment-13359</guid>
		<description>Unrelated to this post, but I'm not sure how to contact you via Email.  Anyway, I'm using the charting components provided with Flex Builder 3 Pro and can't seem to get the y-axis title to display multi-line.  I traced the code back to the ChartLabel.as class provided in the sdk and it shows that when the label is created, multi-line is set to true.  Is there a special string I need to pass with the title to make it use 2 lines?

The strings I've tried are...

"% of e-mail users accessing e-mail eight or more times per month"
"% of e-mail users accessing e-mail\neight or more times per month"
"% of e-mail users accessing e-mail&#60;br&#62;eight or more times per month"

...but each still displays on a single line.</description>
		<content:encoded><![CDATA[<p>Unrelated to this post, but I&#8217;m not sure how to contact you via Email.  Anyway, I&#8217;m using the charting components provided with Flex Builder 3 Pro and can&#8217;t seem to get the y-axis title to display multi-line.  I traced the code back to the ChartLabel.as class provided in the sdk and it shows that when the label is created, multi-line is set to true.  Is there a special string I need to pass with the title to make it use 2 lines?</p>
<p>The strings I&#8217;ve tried are&#8230;</p>
<p>&#8220;% of e-mail users accessing e-mail eight or more times per month&#8221;<br />
&#8220;% of e-mail users accessing e-mail\neight or more times per month&#8221;<br />
&#8220;% of e-mail users accessing e-mail&lt;br&gt;eight or more times per month&#8221;</p>
<p>&#8230;but each still displays on a single line.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
