reduxdj
10-15-2004, 08:34 AM
I have a dateField Component, I have successfully made the fonts work for the collapsed state, the month header and today's date with some code like:
_global.styles.HeaderDateText.setStyle("fontSize",8);
_global.styles.WeekDayStyle.setStyle("fontSize",8);
_global.styles.TodayStyle.setStyle("fontSize",8);
bookingform_mc.dateField.pullDown._visible = false;
bookingform_mc.dateField.pullDown.setSize(180,180) ;
bookingform_mc.dateField.fontFamily = "FFF Expresso";
bookingform_mc.dateField.fontSize=8;
But the problem is that I can't get all the days to use my 8 pixel font. I've read the documentation and it says:
"The DateField 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 DateField component itself control the regular date text and the text displayed in the collapsed state, and provide defaults for the other text. To set text styles for specific categories of text, use the following class-level style declarations."
the collapsed state is working with the font correctly but it's not transferring over to the regular date text as it says.
I've also used the code:
oldFontSize = bookingform_mc.dateField.getStyle("fontSize");
trace(oldFontSize);
it says 8
any help??
Thanks
_global.styles.HeaderDateText.setStyle("fontSize",8);
_global.styles.WeekDayStyle.setStyle("fontSize",8);
_global.styles.TodayStyle.setStyle("fontSize",8);
bookingform_mc.dateField.pullDown._visible = false;
bookingform_mc.dateField.pullDown.setSize(180,180) ;
bookingform_mc.dateField.fontFamily = "FFF Expresso";
bookingform_mc.dateField.fontSize=8;
But the problem is that I can't get all the days to use my 8 pixel font. I've read the documentation and it says:
"The DateField 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 DateField component itself control the regular date text and the text displayed in the collapsed state, and provide defaults for the other text. To set text styles for specific categories of text, use the following class-level style declarations."
the collapsed state is working with the font correctly but it's not transferring over to the regular date text as it says.
I've also used the code:
oldFontSize = bookingform_mc.dateField.getStyle("fontSize");
trace(oldFontSize);
it says 8
any help??
Thanks