Print Page | Close Window

Reversed event layout positions vs Outlook

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=8906
Printed Date: 21 December 2024 at 10:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Reversed event layout positions vs Outlook
Posted By: joshma
Subject: Reversed event layout positions vs Outlook
Date Posted: 26 November 2007 at 3:06pm

I have been working with the Xtreme CalendarPro for over a year and  I am very happy with it.  It looks great and I can usually get it to do what I want.

I am currently having a problem with changing the order of events in the calendar.  The calendar does not layout events in the same order as they are shown in MS Outlook and I want to make it behave this way.  For example, if two events start at the same time and one is longer, then the longer one should be on the left, and the shorter event should be on the right.  I was able to swap the positions of the events by calling SetEventPlacePos(), but some problems still linger: 1) when adding a new event by typing (aka. in-place create event) the new event is not repositioned until I press enter;  2) events that span two days but not a full day are not layed-out properly.
 
Perhaps there is an easier (built-in?) way to change the behavior of the layout of events?
Any help would be greatly appreciated.
 
Thanks,
Josh



Replies:
Posted By: joshma
Date Posted: 28 November 2007 at 6:29pm
Can someone please help with this issue so that I can implement this support?


Posted By: joshma
Date Posted: 17 December 2007 at 1:08pm
Hi Sergey, I used your fix below and it worked perfectly! Thanks for your assistance.
 
--------------------------------------------------
method CXTPCalendarEvents::CompareEvents_ForView(...

nCmp = XTPCompare((*ppEv1)->GetDurationMinutes(), (*ppEv2)->GetDurationMinutes());

if (nCmp)

{

return -nCmp; // NOTE negation sign there

}



Posted By: sserge
Date Posted: 17 December 2007 at 1:23pm
Glad to hear that

--
WBR,
Serge



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