Add Holidays to Calendar |
Post Reply |
Author | |
dentor
Senior Member Joined: 30 November 2005 Location: France Status: Offline Points: 102 |
Post Options
Thanks(0)
Posted: 22 December 2005 at 3:24am |
Is there a way to add holidays to the Xtreme Calendar control, to display a different color for that days when displaying the day or WorkWeek, the same way as 'WorkDayStartTime' does ?
Eventually, a different color to display lunch time ?
Thanks for your reply.
|
|
kylechen
Groupie Joined: 29 November 2004 Status: Offline Points: 57 |
Post Options
Thanks(0)
|
Same question here too. Thanks
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hello,
Currently there are only 2 ways to define work time for the Calendar control: using DayStartTime / DayEndTime properties and using WorkWeekMask property. First pair allows controlling work time during the day, and the second one – for days of the week. So, unfortunately you can not control a lunch time. We’ll consider those as a feature requests for the next version. Currently I can propose only 1 workaround for controlling work/non work days like holidays. The idea is that if you have shown no more than 1 week in day view, you can capture days selection changed event and adjust WorkWeekMask property according to days on the current week Something like the following:
Or, if you are using C++/MFC version of the control, you can override IsWorkDateTime method, and that would solve both problems. -- WBR, Serge |
|
kylechen
Groupie Joined: 29 November 2004 Status: Offline Points: 57 |
Post Options
Thanks(0)
|
Thank you sserge. I understand your explaination and workaround solution. However I actually need is a "highlight" of holidays (not only in day week view but also in month view, etc.) or lunch time. Even more some cusotmized icon could be displayed for special days like a bell for Xmas Day. I believe this has not been implemented in ActiveX version yet. Just wish it be done next release. Thank you anyway. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |