Print Page | Close Window

Set Lunch Hour

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=6407
Printed Date: 06 October 2024 at 12:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Set Lunch Hour
Posted By: christea
Subject: Set Lunch Hour
Date Posted: 13 February 2007 at 5:49pm
How do you set/change the lunch hour?  Presently my calendar displays a gray bar for the 1-2pm. Can the lunch hour be elliminated? Thanks.



Replies:
Posted By: sserge
Date Posted: 14 February 2007 at 4:29pm
Of course it could be eliminated. This time is regulated by a callback event CalendarControl_BeforeDrawDayViewCell.

The following piece of code grays this bar:

    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


You can simply delete it.

--
WBR,
Serge



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