Print Page | Close Window

Set view to workweekmask

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=2775
Printed Date: 27 April 2024 at 11:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Set view to workweekmask
Posted By: Yonger
Subject: Set view to workweekmask
Date 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?




Replies:
Posted By: sserge
Date 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


Posted By: Yonger
Date Posted: 24 August 2005 at 8:58am
That works.  Thanks!



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