I have developed a Payroll Shift Schedule using the DBPlanner and DBMultiuMonthSource to display all 12 months of the current year. Since Saturday and Sunday are set as 'Inactive' days, the color comes through as grey which is fine. I have a table that contains the Statutory Holidays and I would like these days to display in a different color on the DBPlanner.
You could use the property Planner.BackgroundColor[col,row]: TColor to set the background color of specific cells.
Thanks for the reply, Bruno.
You could use AbsTimeToCell but other than this, it should be straightforward, as I'd assume the column you need is based on a simple calculation that the first column shows the first month, the second column the seconc month etc... and the first day is in the first row, second day in second row etc..
When I first display the Planner, I default to the current Year (Jan-Dec) so I can populate the background color in the manner you suggested. (Calculate the Row and Column based on the Month and Day). Howerver, I allow the user to scroll from side to side one month at a time. When the user does this, the row and column can no longer be calculated based on the Month and Day. I suppose I could keep track of when the user scrolls and use that as an offset. I just thought there might be an easy way to grab the row and column using a date.
Wrt scrolling, I assume here you use the left & right scroll buttons and you can handle this scrolling via the Planner.OnPlannerNext/OnPlannerPrev events. From this event, you could reinitialize the color based on the MultiMonthSource.StartMonth property that has the month index for the first month displayed.
Wrt email: are you sure no spam filter/junk email filter is blocking these emails? Is your correct email address setup in your account?
Thanks Bruno,
Sorry Bruno, I have one more question on this issue.