Print Page | Close Window

This day is holyday

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=4710
Printed Date: 22 November 2024 at 9:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: This day is holyday
Posted By: dentor
Subject: This day is holyday
Date Posted: 03 August 2006 at 4:08am
How is it possible to mark a day for holyday (change the background for the all day, change the header text of the day, ...) ?
 
Thanks for a suggestion.



Replies:
Posted By: sserge
Date Posted: 03 August 2006 at 6:04am
You can catch BeforeDrawDayViewCell event and mark a cell with a requred color (red for holidays for example). See our sample application for how it is implemented for a lunch time:

Private Sub CalendarControl_BeforeDrawDayViewCell(ByVal CellParams As XtremeCalendarControl.CalendarDayViewCellParams)
    '''...  
    If TimeValue(CellParams.BeginTime) >= #1:00:00 PM# And TimeValue(CellParams.BeginTime) < #2:00:00 PM# _
       And Weekday(CellParams.BeginTime) <> 1 And Weekday(CellParams.BeginTime) <> 7 Then
        CellParams.BackgroundColor = RGB(198, 198, 198)
    End If
End Sub


--
WBR,
Serge


Posted By: dentor
Date Posted: 03 August 2006 at 7:03am
It's a good idea.
 
The problem is that this indication (cell highlight) is not visible the most of the time and the user can't see that the day is a holyday.
 
A better way would be to be able to change the background and the text of the  header of the day that will be always visible during the scrolling of the calendar.
 
Is there a project to have properties to personnalize the header of a day in the next release ?


Posted By: sserge
Date Posted: 03 August 2006 at 2:04pm
In the nearest version we plan to add a dynamic customization.
This would let you to change Header text font, color, background for each day.
 
--
WBR,
Serge


Posted By: dentor
Date Posted: 06 August 2006 at 2:11am
It will be perfect !



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net