Flex之日历控件设置

Flex在平时的使用的过程中,我们会用到DateChooser控件,这个控件最早是使用E文的,为了能显示出中文,以及设置一些样式,

我这里设置了DateChooser。不用多说,帖上代码:

<mx:DateChooser x="139" y="83" borderColor="green"
									change="datechooser1_changeHandler(event)"
									click="datechooser1_clickHandler(event)"
									dayNames="[日,一,二,三,四,五,六]"
									headerColors="{[0xE1E56B, 0x04F5F7 ]}"
									headerStyleName="myHeaderStyle"
									monthNames="[一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月]"
									scroll="changeMonth(event)"
									selectedRanges="{{rangeStart:new Date(2011,7,12),rangeEnd:new Date(2007,10,10)}}"
									todayColor="#CCCCCC"	todayStyleName="myTodayStyle"  weekDayStyleName="myDayStyle" yearNavigationEnabled="true"/>
而且里面用到了一些样式:

在css文件中写入

/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";


.yahei{
	font-family:"Microsoft Yahei",Georgia;
}
.myHeaderStyle{
	color:#6666CC; 
	font-family:Times New Roman, Times, serif;
	font-size:16px; font-weight:bold;
}
.myTodayStyle{
	color:#CC6633; 
	font-family:Times New Roman, Times, serif;
	font-size:12px; font-weight:bold;
}
.myDayStyle{
	color:#006600; 
	font-family:Courier New, Courier, mono;
	font-size:15px; font-style:italic; font-weight:bold;
}

最终的显示效果如下:


(待续..................................................................................)

  时不我待.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值