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....



AddHoliday


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

The method AddHoliday adds a new, non-repeating holiday to the existing list of fixed holidays. The parameters day, mon, and year specify the date of that holiday, the parameter Caption should contain the name of the holiday. The name is displayed as a component hint, if ShowHolidayHint is set to TRUE.

Hint: Please note that changing the Language of the calendar automatically clears and reloads the list of fixed holidays. Thus AddHoliday 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