TDBPlannerCalendar

Need 2 things

  1. Have a list with employees and my customer wants an overview of Calendars so my customer can see status of his Employees.
    I have in a database when an employee is in holiday, Sick or unlawfull abscent.
  2. Something like an agendastyle where my customer can see in one view the employees who are sick or in holiday or abscent, so the list of names on a daily page of an agenda.

Problem 1) I use the TDBPlannerCalendar and "OnEventInsert" event to change the color to show if employee is in holiday, Sick or abscent but the event is used AFTER the insert, so the color changes a little to late ...

Well, the TSelDateItem needs to be created first before it can be passed via an event to be customized (like setting color).
Not sure what the real meaning is of your statement "the color changes too late"?
In this loop that inserts events and triggers OnEventInsert immediately after each item creation, I would expect that setting the color from OnEventInsert is not visually noticeable.