The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



AddRepeatHoliday


Unit: SDL_minical
Class: TMiniCal
Declaration: procedure AddRepeatHoliday (day, mon: integer; Caption: string);

The method AddRepeatHoliday adds a new, repeating fixed holiday to the existing list of fixed holidays. The parameters day and mon specify the day and the month of that holiday, assuming that it repeats every year at that particular date. The parameter Caption should contain the name of the holiday. The name is displayed as a component hint, if ShowHolidayHint is set to TRUE.

By default TMiniCal contains the following pre-defined, repeating fixed holidays:

Jan-01New Year's Day
Jan-06Epiphany
May-01Labor Day
Aug-15Assumption of Mary
Nov-01All Saints
Dec-08Immaculate Conception
Dec-25  XMas
Dec-26Boxing Day

Hint: Please note that changing the Language of the calendar automatically clears and reloads the list of fixed holidays. Thus AddRepeatHoliday should be called only after the language of the calendar has been selected.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): minical



Last Update: 2013-May-30