Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - This day is holyday
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

This day is holyday

 Post Reply Post Reply
Author
Message
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Topic: This day is holyday
    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.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post 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 ?
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2006 at 2:11am
It will be perfect !
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.