Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Set Lunch Hour
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Set Lunch Hour

 Post Reply Post Reply
Author
Message
christea View Drop Down
Newbie
Newbie


Joined: 13 February 2007
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote christea Quote  Post ReplyReply Direct Link To This Post Topic: Set Lunch Hour
    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.
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: 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
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.109 seconds.