Print Page | Close Window

Military time in DayView

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


Topic: Military time in DayView
Posted By: KentM
Subject: Military time in DayView
Date Posted: 06 June 2008 at 5:44pm

I am using the ActiveX calendar code in a vb6 app.  The time scale in Day View needs to display in a 24 Hour Military format, and I need this to occur without forcing the user to set their regional time setting to 24 hour format.  As sophisticated as this control is, I am susprised to find there does not seem to be a way to do this.  If it is possible, someone please share with us how to do it.  If it is not possible then I wish someone at CJ would just say so. 




Replies:
Posted By: AndreiM
Date Posted: 10 June 2008 at 3:57pm
There are few internal options related to timescale time format, but they are not published for customization (just initialized from user locale).
 
It is easy to publish them for office 2007 theme.
 
Other way is to change resource file and set CalendarGlobalSettings.UseResourceFileLocale = True, but this will change calendar language too.
 
So, there is no way to customize this for timescale.
 
For other elements you can use GetItemText event.


-------------
Regards,
Andrei Melnik


Posted By: KentM
Date Posted: 11 June 2008 at 11:59am

Dear Codejock.  I regret now that I did not ask about 24 time format as a pre sales question.  My thought now is what kind of an answer is that? 

"It is easy to publish them for office 2007 theme..."
"...there is no way to customize this for timescale"
 
Was that a yes or a no?   I've been through the help document and this forum and can not see a way to display the time in 24 hour format in day view without using regional settings.  So, in case I've just can't find it, is there a property or method available to display the time in 24 hour format in day view without using regional settings - Yes or No
 
If yes, it would be nice if you just stated what it is, and I will figure out how to use it.
If no, it is not an admission of failure to state a control does not have a feature requested. 


Posted By: AndreiM
Date Posted: 11 June 2008 at 5:10pm
Hello,
sorry for not exact answer.
 
1. In the current version (12.0) there is no way to set 24 hour clock format for a time scale from the program. (regional settings are used)
 
2. We can add time scale time format option for the next version.
 
3. You are not a first customer who ask about changing default clock format. For time drawn in appointments current version already has a way to do this: using GetItemText event.

Do you need 24 hr time for appointments too or for time scale only?
I think about a common option which will define time format for all calendar elements.
 
4. As I understand you use Office 2003 theme?
 
 
 

 


-------------
Regards,
Andrei Melnik


Posted By: KentM
Date Posted: 12 June 2008 at 1:36pm
Thanks Andrei
 
The target audience for the software have no need for the Office 2007 theme and thus we are not using it.  The calendar control is being used to display read only scheduled events, not to create the events.  So we only need the time scale to display in a 24 hour format when in day view.  I'm sure other developers will have different needs.
 
A possible solution I've tested is to use the ResourceFile property of CalendarGlobalSettings to use a foreign language dll which will display the calendar in 24 format and the GetItemText event to convert the headings back to English.  I'm not sure yet if I want to implement this workaround, but it does work.



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