|  | 
| Reversed event layout positions vs Outlook | 
| Post Reply   | 
| Author | |
| joshma   Newbie     Joined: 26 November 2007 Location: United States Status: Offline Points: 4 |  Post Options  Thanks(0)  Quote  Reply  Topic: Reversed event layout positions vs Outlook 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 | |
|  | |
| joshma   Newbie     Joined: 26 November 2007 Location: United States Status: Offline Points: 4 |  Post Options  Thanks(0)  Quote  Reply  Posted: 28 November 2007 at 6:29pm | 
| 
   Can someone please help with this issue so that I can implement this support?
    | |
|  | |
| joshma   Newbie     Joined: 26 November 2007 Location: United States Status: Offline Points: 4 |  Post Options  Thanks(0)  Quote  Reply  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 } | |
|  | |
| sserge   Moderator Group   Joined: 01 December 2004 Status: Offline Points: 1297 |  Post Options  Thanks(0)  Quote  Reply  Posted: 17 December 2007 at 1:23pm | 
| 
   Glad to hear that   -- WBR, Serge | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |