Print Page | Close Window

Show Start and End Time

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=14213
Printed Date: 20 May 2024 at 2:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Show Start and End Time
Posted By: DataFlowJoe
Subject: Show Start and End Time
Date Posted: 05 May 2009 at 6:47am
This should be so obvious, I'm embarassed having to ask for it.... but I simply cannot find it on the forum or in the help file.
 
The start time and end time is displayed when the mouse is moved over the event box.
 
How do I permanently show the start and end time in the event box displayed on the calendar, not just when the mouse pointer is moved over it.
 
I thought the following flags did it but they dont....
 
 CalendarControl.Options.AdditionalOptionsFlags.SetFlag xtpCalendarOptDayViewShowStartTimeAlways
 CalendarControl.Options.AdditionalOptionsFlags.SetFlag xtpCalendarOptDayViewShowEndTimeAlways
 
Any help greatly appreciated.
 
 


-------------
He is no fool who gives what he cannot keep to gain what he cannot lose. (Jim Elliott)



Replies:
Posted By: mdoubson
Date Posted: 07 May 2009 at 5:01pm
 
There are different options for different mode - check your VB sample for details please


-------------
Mark Doubson, Ph.D.


Posted By: Marco1
Date Posted: 30 March 2010 at 7:07am
How can this be done in WorkWeekView in Office2007 theme?
In the moment only the subject is displayed, but not start/endtime (in other themes times are displayed)

I havn't found any API function in XTPCalandarControl.
And it doesn't help to set

xtpCalendarOptWorkWeekViewShowStartTimeAlways
xtpCalendarOptWorkWeekViewShowEndTimeAlways

option flags.

Any ideas?


Using 13.3.1 and VC++


Posted By: Marco1
Date Posted: 30 March 2010 at 10:12am
Okay a further look in the code shows (as far as I can see), that this feature is not implemented in Office2007 theme, btw. MS doesn't have this either.

So, an easy way is to sink the following function:

void CCalendarView::OnEvent_GetItemText(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam)
{
    UNREFERENCED_PARAMETER(lParam);
    XTP_CALENDAR_GETITEMTEXT_PARAMS* pParams = (XTP_CALENDAR_GETITEMTEXT_PARAMS*)wParam ;
   
    if (XTP_NC_CALENDAR_GETITEMTEXT != Event || !pParams)
        return;

    if (xtpCalendarItemText_EventSubject == pParams->nItem)
    {
        // modifiy text here, set date in subject
        ....
    }
}




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