<?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: Creating fixed width buttons in a Flex ButtonBar component</title>
	<link>http://blog.flexexamples.com/2007/09/05/creating-fixed-width-buttons-in-a-flex-buttonbar-component/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 09:56:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/05/creating-fixed-width-buttons-in-a-flex-buttonbar-component/#comment-16169</link>
		<author>peterd</author>
		<pubDate>Mon, 13 Oct 2008 14:11:00 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/05/creating-fixed-width-buttons-in-a-flex-buttonbar-component/#comment-16169</guid>
		<description>jurlan,

I don't know if I understand the question. I took a screenshot of a vertical ButtonBar, set the magnification to 600% in Photoshop and each button had the same width/height. If you're seeing something different, you may want to file a bug at http://bugs.adobe.com/flex/ and include a simple test case to reproduce the issue and a screenshot of what it looks like on your system.

That said, if the question was how do you remove the rounded corners on the first/last buttons, you can set the &lt;code&gt;buttonStyleName&lt;/code&gt; and &lt;code&gt;cornerRadius&lt;/code&gt; styles:
&lt;pre class="code"&gt;
&#60;mx:Style&#62;
    ButtonBar {
        buttonStyleName: buttonStylez;
    }

    .buttonStylez {
        cornerRadius: 0;
    }
&#60;/mx:Style&#62;
&lt;/pre&gt;

For another example of setting the corner radius on a ButtonBar control, see &lt;a href="http://blog.flexexamples.com/2008/01/07/setting-the-button-corner-radius-in-a-flex-buttonbar-control/" rel="nofollow"&gt;&lt;u&gt;"Setting the button corner radius in a Flex ButtonBar control"&lt;/u&gt;&lt;/a&gt;.

Peter</description>
		<content:encoded><![CDATA[<p>jurlan,</p>
<p>I don&#8217;t know if I understand the question. I took a screenshot of a vertical ButtonBar, set the magnification to 600% in Photoshop and each button had the same width/height. If you&#8217;re seeing something different, you may want to file a bug at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a> and include a simple test case to reproduce the issue and a screenshot of what it looks like on your system.</p>
<p>That said, if the question was how do you remove the rounded corners on the first/last buttons, you can set the <code>buttonStyleName</code> and <code>cornerRadius</code> styles:</p>
<pre class="code">
&lt;mx:Style&gt;
    ButtonBar {
        buttonStyleName: buttonStylez;
    }

    .buttonStylez {
        cornerRadius: 0;
    }
&lt;/mx:Style&gt;
</pre>
<p>For another example of setting the corner radius on a ButtonBar control, see <a href="http://blog.flexexamples.com/2008/01/07/setting-the-button-corner-radius-in-a-flex-buttonbar-control/" rel="nofollow"><u>&#8220;Setting the button corner radius in a Flex ButtonBar control&#8221;</u></a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jurlan</title>
		<link>http://blog.flexexamples.com/2007/09/05/creating-fixed-width-buttons-in-a-flex-buttonbar-component/#comment-16163</link>
		<author>jurlan</author>
		<pubDate>Mon, 13 Oct 2008 10:26:04 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/05/creating-fixed-width-buttons-in-a-flex-buttonbar-component/#comment-16163</guid>
		<description>I was wondering how I can make sure that when I use the vertical layout for the ButtonBar, that the first and the last button have the same width as the middle ones and not a few pixels less ..

Thanks</description>
		<content:encoded><![CDATA[<p>I was wondering how I can make sure that when I use the vertical layout for the ButtonBar, that the first and the last button have the same width as the middle ones and not a few pixels less ..</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
