Print Page | Close Window

BUG: TimeScale in Calendar DayView is incorrect

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=13165
Printed Date: 07 October 2024 at 1:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: TimeScale in Calendar DayView is incorrect
Posted By: Stilki
Subject: BUG: TimeScale in Calendar DayView is incorrect
Date Posted: 14 January 2009 at 4:17am
There seems to be a bug in the TimeScale of the Calendar control in DayView.

The picture below is the Calendar sample from CJ samples.
The picture shows the changes in code that I have made to the sample;

CalendarControl.DayView.TimeScale = 45
CalendarControl.DayView.TimeScaleMinTime = #9:00:00 AM#
CalendarControl.DayView.TimeScaleMaxTime = #6:00:00 PM#
CalendarControl.Options.WorkDayStartTime = #9:00:00 AM#
CalendarControl.Options.WorkDayEndTime = #6:00:00 PM#

When you run the sample in DayView and if you KeyDown with the keyboard from the top of the DayView cell (9:00 AM) to the Bottom, you will see in the immediate window the date entries are correct for a TIMESCALE INTERVAL of 45 minutes.

BUT, the Calendar Control is displaying the wrong TimeScale Caption entries on the left of the control.

If you double-click the last cell in the DayView, you will notice that the Start and End times (5:15PM to 6:00PM) are correct in the Calendar Event window.

CJ, can you please verify if this is a bug or just a constraint that we have to live with, that being non-standard TimeScales (eg 45 mins.)






Replies:
Posted By: SuperMario
Date Posted: 14 January 2009 at 3:21pm
Timescale will only show 5,10,15,30,60


Posted By: Stilki
Date Posted: 15 January 2009 at 2:13am
The TimeScale works if it is set to 6,10,20,90,120 etc..!
It seems to work if it is a multiple of 60.



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