Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Style Calendar componant

Status
Not open for further replies.

wikfx

IS-IT--Management
Dec 16, 2001
196
MT
Can somone please tell me how I can skin the DateChooser componant via code?? I have searched but with no luck :(

thanks

W i K
 
calendar.setStyle("borderColor",0x000000)
calendar.setStyle("backgroundColor",0x33ccff)
calendar.setStyle("headerColor",0x87cefa)
calendar.setStyle("rollOverColor",0x880000)
calendar.setStyle("selectionColor",0x880000)
calendar.setStyle("todayColor",0x333333)
calendar.setStyle("color",0xffffff)
 
is that all I can skin on it? or is there more? like arrow color, header font, and watever else, where can I find a list of everything I can do, thanks

W i K
 
I found this code on another forum but I do not know how to implement it? how do I set my calendar componant to get this style?? please help :)

Code:
// calendar style
//var cal_style = new FStyleFormat();

/*
MyCal.face = "#0099CC";
cal_style.arrow = 0x0029CB;
cal_style.background = 0x6B6FEB;
cal_style.backgroundDisabled = 0xE1E0FF;
cal_style.darkshadow = 0x4D69D8;
cal_style.foregroundDisabled = 0x999999;
cal_style.highlight = 0xFFFFFF;

// TEXT FORMATTING
cal_style.FCalendarHeadText = new TextFormat();
cal_style.FCalendarDayText = new TextFormat();
cal_style.FCalendarDateText = new TextFormat();

// calendar head text
cal_style.FCalendarHeadText.color = 0xFFFFFF;
cal_style.FCalendarHeadText.bold = true;
cal_style.FCalendarHeadText.size = 14;

// calendar day text
cal_style.FCalendarDayText.color = 0x0029CB;
cal_style.FCalendarDayText.bold = true;
cal_style.FCalendarDayText

// calendar date text
cal_style.FCalendarDateText.color = 0x0029CB;
cal_style.FCalendarDateText.bold = true;
cal_style.FCalendarDateText.size = 12; 


cal_style.addListener(MyCal)
cal_style.applyChanges();
*/

W i K
 
Hi again another question regarding the calendar, does anyone know how I can show the last days of the previos month and the next days of teh next month so that I have no empty space on the calendar? anyway thanks let me know. have a good one.

W i K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top