The ..BrushColor property of Appointment variable is used to define a display color for an appointment. If no background color is defined, the Organizer control will automatically use the color associated with the appointment category.

Filling an Organizer control with the data found in a HFSQL data file

The records are stored in a HFSQL file. The initial fill of the Organizer control can be done by browsing the file via the FOR EACH syntax and by adding each appointment via <Organizer>.AddAppointment.

The same type of code can be implemented for the different processes of the Organizer control. Indeed, a procedure was automatically declared by the Organizer control for each control process that handles an appointment.

These procedures receive in parameter an Appointment variable affected by the process.

Advanced use of processes with procedure

You can also allow the user to define more precisely the characteristics of his appointment during an addition or a modification. To do so, create a window with the information to specify.

In the code, all you have to do is open the window in the "Enter the appointment in input" process. To lock the direct input via the popup menu of the organizer, the process must return False.

This principle can be applied to all the processes called by the popup menu of Organizer control.

Example:

PROCEDURE Edit(aptEdited is Appointment)

// Opens the window for entering an appointment // with the selected appointment (in Creation or Modification mode)Open(WIN_InputAPT_HFSQL, aptEdited)

// Returns False to lock the direct input in the Organizer controlRESULT False

Managing bank holidays

The bank holidays are managed by programming. Several WLanguage functions (starting with BankHolidayXXX) are available.

To define the bank holidays displayed in the Organizer controls and in the Calendar controls, you must use BankHolidayAdd. This function allows you to define the list of bank holidays that will be used. This function allows you to customize the bank holidays according to the country and to the local regulations. This function must be used at the beginning of the application because it has a global effect on the application.

The bank holidays will be colored in green in the Organizer control.

Example:

// Delete all bank holidaysBankHolidayDeleteAll()// Initialize the 11 bank holidays common to the French regions and to the French territoriesBankHolidayAdd("0101")// 1st of JanuaryBankHolidayAdd(bhEasterMonday)// Easter MondayBankHolidayAdd("0501")// 1st of MayBankHolidayAdd("0508")// 8th of MayBankHolidayAdd(bhAscensionDay)// Ascension dayBankHolidayAdd(bhWhitMonday)// Whit MondayBankHolidayAdd("0714")// 14th of JulyBankHolidayAdd("0815")// 15th of August (Assumption)BankHolidayAdd("1101")// All Saints' DayBankHolidayAdd("1111")// 11th of NovemberBankHolidayAdd("1225")// Christmas

..GranularityAppointment allows you to find out and modify the precision of the grid used by the Organizer control or by the Scheduler control to define the appointments.
Property kept for backward compatibility.