<?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; todayColor</title>
	<atom:link href="http://blog.flexexamples.com/tag/todaycolor/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>Customizing the Flex DateChooser control</title>
		<link>http://blog.flexexamples.com/2007/12/21/customizing-the-flex-datechooser-control/</link>
		<comments>http://blog.flexexamples.com/2007/12/21/customizing-the-flex-datechooser-control/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 07:21:15 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateBase]]></category>
		<category><![CDATA[DateChooser]]></category>
		<category><![CDATA[headerStyleName]]></category>
		<category><![CDATA[todayColor]]></category>
		<category><![CDATA[todayStyleName]]></category>
		<category><![CDATA[unicode range]]></category>
		<category><![CDATA[weekDayStyleName]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/21/customizing-the-flex-datechooser-control/</guid>
		<description><![CDATA[<p>The following example shows how you can customize the DateChooser control in Flex by using an embedded font, customizing the header styles, week day names, week day name styles, and colors by setting various styles and properties.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateChooser_headerStyleName_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/12/21/customizing-the-flex-datechooser-control/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Style&#62; @font-face [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can customize the DateChooser control in Flex by using an embedded font, customizing the header styles, week day names, week day name styles, and colors by setting various styles and properties.</p>
<p><span id="more-391"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateChooser_headerStyleName_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/12/21/customizing-the-flex-datechooser-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local("Base 02");
            fontFamily: Base02Embedded;
            unicode-range:
                U+0030-U+0039, /* 0-9 */
                U+0041-U+0051, /* Uppercase A-Z */
                U+0052-U+007A, /* Lowercase a-z */
                U+002F-U+002F; /* slash (/) */
        }

        DateChooser {
            cornerRadius: 0; /* pixels */
            headerColors: black, black;
            borderColor: black;
            themeColor: black;
            fontFamily: Base02Embedded;
            todayColor: red;
            todayStyleName: myTodayStyleName;
            headerStyleName: myHeaderStyleName;
            weekDayStyleName: myWeekDayStyleName;
            dropShadowEnabled: true;
        }

        .myTodayStyleName {
            color: white;
        }

        .myWeekDayStyleName {
            fontWeight: normal;
        }

        .myHeaderStyleName {
            color: red;
            fontSize: 16;
            fontWeight: normal;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.formatters.DateBase;

            private function dateChooser_init():void {
                dateChooser.dayNames = DateBase.dayNamesShort;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:DateChooser id="dateChooser"
            initialize="dateChooser_init();" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateChooser_headerStyleName_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateChooser_headerStyleName_test/bin/main.html" width="100%" height="300"></iframe></p>
<p class="alert">Base 02 font by <a href="http://www.stereo-type.net/">www.stereo-type.net</a>.</p>
<p>For an example of using embedded fonts with the Flex DateField control, see <a href="http://blog.flexexamples.com/2007/12/16/embedding-fonts-for-the-flex-datefield-control/">&#8220;Embedding fonts for the Flex DateField control&#8221;</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Customizing the Flex DateChooser control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/12/21/customizing-the-flex-datechooser-control/',contentID: 'post-391',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'headerStyleName,todayColor,todayStyleName,unicode range,weekDayStyleName',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/2007/12/21/customizing-the-flex-datechooser-control/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Customizing the current date in the Flex DateField control</title>
		<link>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/</link>
		<comments>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 07:37:32 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[dateChooserStyleName]]></category>
		<category><![CDATA[showToday]]></category>
		<category><![CDATA[todayColor]]></category>
		<category><![CDATA[todayStyleName]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/</guid>
		<description><![CDATA[<p>In an earlier example, <a href="http://blog.flexexamples.com/2007/12/18/changing-the-current-dates-background-color-in-the-flex-datefield-control/">&#8220;Changing the current date&#8217;s background color in the Flex DateField control&#8221;</a>, we saw how you can customize the background color of the current date, assuming that the showToday property is true. In the following example, we see how you can change the font color, style, and weight of the current [...]]]></description>
			<content:encoded><![CDATA[<p>In an earlier example, <a href="http://blog.flexexamples.com/2007/12/18/changing-the-current-dates-background-color-in-the-flex-datefield-control/">&#8220;Changing the current date&#8217;s background color in the Flex DateField control&#8221;</a>, we saw how you can customize the background color of the current date, assuming that the <code>showToday</code> property is <code>true</code>. In the following example, we see how you can change the font color, style, and weight of the current date by setting the <code>todayStyleName</code> style in the Flex DateField control&#8217;s nested DateChooser control.</p>
<p>Full code after the jump.</p>
<p><span id="more-377"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_todayColor_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        DateField {
            todayColor: haloOrange;
            dateChooserStyleName: myCustomDateChooser;
        }

        .myCustomDateChooser {
            todayStyleName: myCustomTodayStyleName;
        }

        .myCustomTodayStyleName {
            color: black;
            fontStyle: italic;
            fontWeight: bold;
        }
    &lt;/mx:Style&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="showToday:"&gt;
                &lt;mx:CheckBox id="checkBox"
                        selected="true"
                        change="dateField.open();" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DateField id="dateField"
            showToday="{checkBox.selected}"
            creationComplete="dateField.open();" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_todayColor_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_todayColor_test/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Customizing the current date in the Flex DateField control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/',contentID: 'post-377',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'dateChooserStyleName,showToday,todayColor,todayStyleName',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/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Changing the current date&#8217;s background color in the Flex DateField control</title>
		<link>http://blog.flexexamples.com/2007/12/18/changing-the-current-dates-background-color-in-the-flex-datefield-control/</link>
		<comments>http://blog.flexexamples.com/2007/12/18/changing-the-current-dates-background-color-in-the-flex-datefield-control/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 16:35:01 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[showToday]]></category>
		<category><![CDATA[todayColor]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/18/changing-the-current-dates-background-color-in-the-flex-datefield-control/</guid>
		<description><![CDATA[<p>The following example shows how you can set the background color for the current date in the DateField control in Flex by setting the todayColor style.</p> <p class="note">If you want to disable the highlighting of the current date, you can set the showToday property to false.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_todayColor_test_2/main.mxml">View [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the background color for the current date in the DateField control in Flex by setting the <code>todayColor</code> style.</p>
<p class="note">If you want to disable the highlighting of the current date, you can set the <code>showToday</code> property to <code>false</code>.</p>
<p>Full code after the jump.</p>
<p><span id="more-375"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_todayColor_test_2/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/12/18/changing-the-current-dates-background-color-in-the-flex-datefield-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="showToday:"&gt;
                &lt;mx:CheckBox id="checkBox" selected="true" /&gt;
            &lt;/mx:FormItem&gt;
            &lt;mx:FormItem label="todayColor:"&gt;
                &lt;mx:ColorPicker id="colorPicker" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DateField id="dateField"
            showToday="{checkBox.selected}"
            todayColor="{colorPicker.selectedColor}" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_todayColor_test_2/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_todayColor_test_2/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Changing the current date\&#039;s background color in the Flex DateField control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/12/18/changing-the-current-dates-background-color-in-the-flex-datefield-control/',contentID: 'post-375',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'showToday,todayColor',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/2007/12/18/changing-the-current-dates-background-color-in-the-flex-datefield-control/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

