CalendarControl Xojo Plugin |
|
CalendarControl.SpecialDays Property
Use this property to define special days. Special days get drawn with red text.
Remarks
If you add dates to the dictionary where the year is 0 then, the day will be considered a special day for all years.
You can either populate the SpecialDays dictionary like:
CalendarControl1.SpecialDays.Add(nil,25,12,0) // 0 Because we want it for every year
CalendarControl1.Refresh
Or if not wanting to have it reoccurring every year:
CalendarControl1.SpecialDays.Add(nil,25,12,2005)
CalendarControl1.Refresh
Or you can assign a a whole DateDictionary to it like:CalendarControl1.SpecialDays = somePreMadeDateDictionary
Fiddling with the SpecialDays property does not trigger refresh, so you are responsible for refreshing the control after using this property.
See Also
CalendarControl Control