<?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 corner radius on a NumericStepper control in Flex</title>
	<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 00:15:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Raaz</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-14159</link>
		<author>Raaz</author>
		<pubDate>Tue, 15 Jul 2008 06:27:32 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-14159</guid>
		<description>s i solved on problem corner radius. i made one mistaque at borderStyle i placed wrongly solid solid

 This is solved no problem but i added on more line to that

&lt;pre class="code"&gt;
can1.setStyle('alpha', 0.5);
&lt;/pre&gt;

  this is not working please give me any solution</description>
		<content:encoded><![CDATA[<p>s i solved on problem corner radius. i made one mistaque at borderStyle i placed wrongly solid solid</p>
<p> This is solved no problem but i added on more line to that</p>
<pre class="code">
can1.setStyle('alpha', 0.5);
</pre>
<p>  this is not working please give me any solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raaz</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-14157</link>
		<author>Raaz</author>
		<pubDate>Tue, 15 Jul 2008 06:19:57 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-14157</guid>
		<description>&lt;pre class="code"&gt;
var can1:Canvas=new Canvas();
can1.width=215;
can1.height=101;
can1.setStyle('borderColor','#040404');
can1.setStyle('solid','solid');
can1.setStyle('backgroundColor','#FFFFFF');
can1.setStyle('cornerRadius',6);
&lt;/pre&gt;

The above code not working in application can any one check this.</description>
		<content:encoded><![CDATA[<pre class="code">
var can1:Canvas=new Canvas();
can1.width=215;
can1.height=101;
can1.setStyle('borderColor','#040404');
can1.setStyle('solid','solid');
can1.setStyle('backgroundColor','#FFFFFF');
can1.setStyle('cornerRadius',6);
</pre>
<p>The above code not working in application can any one check this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raaz</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-14156</link>
		<author>Raaz</author>
		<pubDate>Tue, 15 Jul 2008 06:18:10 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-14156</guid>
		<description>&lt;pre class="code"&gt;
var can1:Canvas = new Canvas();
can1.setStyle('cornerRadius', 6);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre class="code">
var can1:Canvas = new Canvas();
can1.setStyle('cornerRadius', 6);
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Willy Ci</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-13269</link>
		<author>Willy Ci</author>
		<pubDate>Fri, 06 Jun 2008 18:37:38 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-13269</guid>
		<description>I think I found a way to fake it, for now.

put a TextInput under the NumericStepper, 
remove the themeColor of NumericStepper.

&lt;pre class="code"&gt;
&#60;mx:Canvas x="400" y="400"  &#62;
&#60;mx:TextInput id="ti" x="0" y="0" width="50" cornerRadius="10" borderStyle="solid" paddingLeft="10"/&#62;
&#60;mx:NumericStepper id="ns" cornerRadius="10" x="2" y="0"  borderColor="#FFFFFF" borderStyle="none" backgroundAlpha="0" themeColor="#ffffff" paddingLeft="5"/&#62;
&#60;/mx:Canvas&#62;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I think I found a way to fake it, for now.</p>
<p>put a TextInput under the NumericStepper,<br />
remove the themeColor of NumericStepper.</p>
<pre class="code">
&lt;mx:Canvas x="400" y="400"  &gt;
&lt;mx:TextInput id="ti" x="0" y="0" width="50" cornerRadius="10" borderStyle="solid" paddingLeft="10"/&gt;
&lt;mx:NumericStepper id="ns" cornerRadius="10" x="2" y="0"  borderColor="#FFFFFF" borderStyle="none" backgroundAlpha="0" themeColor="#ffffff" paddingLeft="5"/&gt;
&lt;/mx:Canvas&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12714</link>
		<author>peterd</author>
		<pubDate>Thu, 15 May 2008 23:32:39 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12714</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12713" rel="nofollow"&gt;Al&lt;/a&gt;,

You could try creating a custom skin (PNG/JPG/GIF, SWF) with rounded corners and see if you can set a custom skin on the TextInput. No clue if that would work, but may be worth investigating. Apart from that, try asking on the FlexCoders mailing list.

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12713" rel="nofollow">Al</a>,</p>
<p>You could try creating a custom skin (PNG/JPG/GIF, SWF) with rounded corners and see if you can set a custom skin on the TextInput. No clue if that would work, but may be worth investigating. Apart from that, try asking on the FlexCoders mailing list.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12713</link>
		<author>Al</author>
		<pubDate>Thu, 15 May 2008 21:41:09 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12713</guid>
		<description>Thanks Peter,

Tried all ways to get at that inputField in the numeric stepper to change its cornerRadius...

- mx_internal:  can get inputField with numericStepper.mx_internal::inputField as TextInput;
  (the styleProxy filters out the cornerRadius)
- subclassing NumericStepper and overriding get inputFieldStyleFilters() so that cornerRadius is in the list
  (nothing happens!)

I could get round this graphically, but it's become a bit of challenge now.

Any ideas?

Al</description>
		<content:encoded><![CDATA[<p>Thanks Peter,</p>
<p>Tried all ways to get at that inputField in the numeric stepper to change its cornerRadius&#8230;</p>
<p>- mx_internal:  can get inputField with numericStepper.mx_internal::inputField as TextInput;<br />
  (the styleProxy filters out the cornerRadius)<br />
- subclassing NumericStepper and overriding get inputFieldStyleFilters() so that cornerRadius is in the list<br />
  (nothing happens!)</p>
<p>I could get round this graphically, but it&#8217;s become a bit of challenge now.</p>
<p>Any ideas?</p>
<p>Al</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trần Quang Khánh</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12687</link>
		<author>Trần Quang Khánh</author>
		<pubDate>Thu, 15 May 2008 02:59:14 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12687</guid>
		<description>Oh why my MXML code is missing!

Here is code:

mx:NumberFormatter id="nf" formatString="###,###,###.00"
mx:TextInput id="price" change="price.text = nf.format(price.text)"</description>
		<content:encoded><![CDATA[<p>Oh why my MXML code is missing!</p>
<p>Here is code:</p>
<p>mx:NumberFormatter id=&#8221;nf&#8221; formatString=&#8221;###,###,###.00&#8243;<br />
mx:TextInput id=&#8221;price&#8221; change=&#8221;price.text = nf.format(price.text)&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trần Quang Khánh</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12686</link>
		<author>Trần Quang Khánh</author>
		<pubDate>Thu, 15 May 2008 02:57:02 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12686</guid>
		<description>Hi peterd, 

NumberFormatter work correctly. But I need widget support user editing and format currently. Given this pattern: ###,###,###.00. It mean's user input 
300 -&#62; 300
3000 -&#62; 3,000




These code will format Price.text but text's carret always set end of text. If user move to center and key number, then carret go end ==&#62; confuse for user!</description>
		<content:encoded><![CDATA[<p>Hi peterd, </p>
<p>NumberFormatter work correctly. But I need widget support user editing and format currently. Given this pattern: ###,###,###.00. It mean&#8217;s user input<br />
300 -&gt; 300<br />
3000 -&gt; 3,000</p>
<p>These code will format Price.text but text&#8217;s carret always set end of text. If user move to center and key number, then carret go end ==&gt; confuse for user!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12677</link>
		<author>peterd</author>
		<pubDate>Wed, 14 May 2008 14:18:59 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12677</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12671" rel="nofollow"&gt;Trần Quang Khánh&lt;/a&gt;,

Will the NumberFormatter class work? See the &lt;a href="http://livedocs.adobe.com/flex/3/langref/mx/formatters/NumberFormatter.html" rel="nofollow"&gt;&lt;u&gt;Adobe Flex 3 NumberFormatter documentation&lt;/u&gt;&lt;/a&gt; for more information.

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12671" rel="nofollow">Trần Quang Khánh</a>,</p>
<p>Will the NumberFormatter class work? See the <a href="http://livedocs.adobe.com/flex/3/langref/mx/formatters/NumberFormatter.html" rel="nofollow"><u>Adobe Flex 3 NumberFormatter documentation</u></a> for more information.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trần Quang Khánh</title>
		<link>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12671</link>
		<author>Trần Quang Khánh</author>
		<pubDate>Wed, 14 May 2008 04:01:45 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/13/setting-the-corner-radius-on-a-numericstepper-control-in-flex/#comment-12671</guid>
		<description>Hi all!

After two days google, I can't found any text input widget support input
number formatter use patter as ###,###,##0.00. I'm porting some Eclipse RCP
application to Flex. Please refer
http://www.eclipse.org/nebula/widgets/formattedtext/formattedtext.php

Sorry, my english not well</description>
		<content:encoded><![CDATA[<p>Hi all!</p>
<p>After two days google, I can&#8217;t found any text input widget support input<br />
number formatter use patter as ###,###,##0.00. I&#8217;m porting some Eclipse RCP<br />
application to Flex. Please refer<br />
<a href="http://www.eclipse.org/nebula/widgets/formattedtext/formattedtext.php" rel="nofollow">http://www.eclipse.org/nebula/widgets/formattedtext/formattedtext.php</a></p>
<p>Sorry, my english not well</p>
]]></content:encoded>
	</item>
</channel>
</rss>
