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

Set view to workweekmask

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


Joined: 08 August 2005
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Yonger Quote  Post ReplyReply Direct Link To This Post Topic: Set view to workweekmask
    Posted: 24 August 2005 at 7:52am

The calendar object on my form is not full sized as in your examples so I have to scroll to see the entire day.  By default it always comes up at midnight and all the events are below.  Is there a way in code to have the calendar come up with the workweek mask in view when the calendar is loaded to avoid all this scrolling?

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: 24 August 2005 at 8:30am
Hi,

You can use available scrolling methods to adjust your view to the required cell. Use ScrollToWorkDayBegin when you'd like to go to the beginning of the work day.

Or you can scroll anywhere via DayView.ScrollV method. Below is the example of how to scroll to the beginning of the work day using it:

CalendarControl.DayView.ScrollV (CalendarControl.DayView.GetCellNumber( CalendarControl.Options.WorkDayStartTime ))


In a similar manner you can scroll to any required cell, for example to the beginning of the first event.

--
WBR,
Serge
Back to Top
Yonger View Drop Down
Newbie
Newbie


Joined: 08 August 2005
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Yonger Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2005 at 8:58am
That works.  Thanks!
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.188 seconds.