<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; marginTop</title>
	<atom:link href="http://blog.flexexamples.com/tag/margintop/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting margins on a FxTextArea control in Flex Gumbo</title>
		<link>http://blog.flexexamples.com/2009/01/19/setting-margins-on-a-fxtextarea-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2009/01/19/setting-margins-on-a-fxtextarea-control-in-flex-gumbo/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 06:25:14 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[FxTextArea]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[marginBottom]]></category>
		<category><![CDATA[marginLeft]]></category>
		<category><![CDATA[marginRight]]></category>
		<category><![CDATA[marginTop]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/01/19/setting-margins-on-a-fxtextarea-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can set the margins on a Flex Gumbo FxTextArea control by setting the marginLeft, marginRight, marginTop, and marginBottom styles.</p> <p>Full code after the jump.</p> <p></p> <p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the margins on a Flex Gumbo FxTextArea control by setting the <code>marginLeft</code>, <code>marginRight</code>, <code>marginTop</code>, and <code>marginBottom</code> styles.</p>
<p>Full code after the jump.</p>
<p><span id="more-933"></span></p>
<p class="alert">To use the following code, you must have Flash Player 10 and a Flex Gumbo SDK installed in your Flex Builder 3. For more information on downloading and installing the Gumbo SDK into Flex Builder 3, see <a href="http://blog.flexexamples.com/2008/08/02/using-the-beta-gumbo-sdk-in-flex-builder-3/">&#8220;Using the beta Gumbo SDK in Flex Builder 3&#8243;</a>.</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/01/19/setting-margins-on-a-fxtextarea-control-in-flex-gumbo/ --&gt;
&lt;Application name="FxTextArea_margin_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;ApplicationControlBar dock="true"&gt;
        &lt;Form styleName="plain"&gt;
            &lt;FormItem label="marginLeft:"&gt;
                &lt;HSlider id="leftSlider"
                        minimum="0"
                        maximum="40"
                        snapInterval="1"
                        tickInterval="2"
                        liveDragging="true" /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label="marginRight:"&gt;
                &lt;HSlider id="rightSlider"
                        minimum="0"
                        maximum="40"
                        snapInterval="1"
                        tickInterval="2"
                        liveDragging="true" /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label="marginTop:"&gt;
                &lt;HSlider id="topSlider"
                        minimum="0"
                        maximum="40"
                        snapInterval="1"
                        tickInterval="2"
                        liveDragging="true" /&gt;
            &lt;/FormItem&gt;
            &lt;FormItem label="marginBottom:"&gt;
                &lt;HSlider id="bottomSlider"
                        minimum="0"
                        maximum="40"
                        snapInterval="1"
                        tickInterval="2"
                        liveDragging="true" /&gt;
            &lt;/FormItem&gt;
        &lt;/Form&gt;
    &lt;/ApplicationControlBar&gt;

    &lt;FxTextArea id="textArea"
            textAlign="justify"
            marginLeft="{leftSlider.value}"
            marginRight="{rightSlider.value}"
            marginTop="{topSlider.value}"
            marginBottom="{bottomSlider.value}"
            width="100%"
            height="100%"&gt;
        &lt;text&gt;&lt;String source="data/lorem.txt" /&gt;&lt;/text&gt;
    &lt;/FxTextArea&gt;

&lt;/Application&gt;
</pre>
<p class="alert">This entry is based on a beta version of the Flex Gumbo SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex Gumbo SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting margins on a FxTextArea control in Flex Gumbo on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/01/19/setting-margins-on-a-fxtextarea-control-in-flex-gumbo/',contentID: 'post-933',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'Gumbo,marginBottom,marginLeft,marginRight,marginTop',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2009/01/19/setting-margins-on-a-fxtextarea-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

