ActionScript 2.0 Components Language Reference |
|
|
|
| DateChooser component > Customizing the DateChooser component > Using styles with the DateChooser component | |||
You can set style properties to change the appearance of a DateChooser instance. If the name of a style property ends in "Color", it is a color style property and behaves differently than noncolor style properties. For more information, see Using styles to customize component color and text in Using ActionScript 2.0 Components.
A DateChooser component supports the following styles:
|
Style |
Theme |
Description |
|---|---|---|
themeColor
|
Halo |
The glow color for the rollover and selected dates. Possible values are |
backgroundColor
|
Both |
The background color. The default value is 0xEFEBEF (light gray). |
borderColor
|
Both |
The border color. The default value is 0x919999. The DateChooser component uses a solid single-pixel line as its border. This border cannot be modified through styles or skinning. |
headerColor
|
Both |
The background color for the component heading. The default color is white. |
rollOverColor
|
Both |
The background color of a rolled-over date. The default value is 0xE3FFD6 (bright green) with the Halo theme and 0xAAAAAA (light gray) with the Sample theme. |
selectionColor
|
Both |
The background color of the selected date. The default value is 0xCDFFC1 (light green) with the Halo theme and 0xEEEEEE (very light gray) with the Sample theme. |
todayColor
|
Both |
The background color for the today's date. The default value is 0x666666 (dark gray). |
color
|
Both |
The text color. The default value is 0x0B333C with the Halo theme and blank with the Sample theme. |
disabledColor
|
Both |
The color for text when the component is disabled. The default color is 0x848384 (dark gray). |
embedFonts
|
Both |
A Boolean value that indicates whether the font specified in |
fontFamily
|
Both |
The font name for text. The default value is |
fontSize
|
Both |
The point size for the font. The default value is 10. |
fontStyle
|
Both |
The font style: either |
fontWeight
|
Both |
The font weight: either |
textDecoration
|
Both |
The text decoration: either |
The DateChooser component uses four categories of text to display the month name, the days of the week, today's date, and regular dates. The text style properties set on the DateChooser component itself control the regular date text and provide defaults for the other text. To set text styles for specific categories of text, use the following class-level style declarations.
|
Declaration name |
Description |
|---|---|
HeaderDateText
|
The month name. |
WeekDayStyle
|
The days of the week. |
TodayStyle
|
Today's date. |
The following example demonstrates how to set the month name and days of the week to a deep red color.
_global.styles.HeaderDateText.setStyle("color", 0x660000);
_global.styles.WeekDayStyle.setStyle("color", 0x660000);
|
|
|
|