CalendarControl Xojo Plugin |
|
CalendarControl.MarkedDays Property
Use this property to define Marked days. Marked days will have a red mark under the text.
Remarks
If you add dates to the dictionary where the year is 0 then, the day will be considered a marked day for all years.
You can either populate the MarkedDays dictionary like:
CalendarControl2.MarkedDays.Add("Remember to buy some gifts",20,12,2005)
CalendarControl2.Refresh
Or if we wanted the event to be reoccurring every year:
CalendarControl2.MarkedDays.Add("Remember to buy some gifts",20,12,0)
CalendarControl2.Refresh
Or you can assign a a whole DateDictionary to it like:
CalendarControl1.MarkedDays = somePreMadeDateDictionary
Fiddling with the MarkedDays property does not trigger refresh, so you are responsible for refreshing the control after using this property.
See Also
CalendarControl Control