<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CommitDraggingEvent is called too early</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : CommitDraggingEvent is called too early]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 03:09:22 +0000</pubDate>
  <lastBuildDate>Sat, 04 Nov 2006 17:58:09 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=5428</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CommitDraggingEvent is called too early : Hi,  I want users to be able...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5428&amp;PID=17012&amp;title=commitdraggingevent-is-called-too-early#17012</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5428<br /><strong>Posted:</strong> 04 November 2006 at 5:58pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I want users to be able to drag&amp;drop events. Still, the users of this application will be quite inexperienced. It is therefore important to double-check with the user, that the event should indeed be moved.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your solution.</DIV>]]>
   </description>
   <pubDate>Sat, 04 Nov 2006 17:58:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5428&amp;PID=17012&amp;title=commitdraggingevent-is-called-too-early#17012</guid>
  </item> 
  <item>
   <title><![CDATA[CommitDraggingEvent is called too early :   Let me ask you why do you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5428&amp;PID=17011&amp;title=commitdraggingevent-is-called-too-early#17011</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5428<br /><strong>Posted:</strong> 04 November 2006 at 3:46pm<br /><br /><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">Let me ask you why do you need this?</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"><br>Because g</span><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">enerally users have tasks to restrict dragging of some events or restrict dragging to some places (dates or AllDayEvents area, etc).</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">For this purpose (and not only for dragging) Calendar sends special notification XTP_NC_CALENDAR_BEFORE_EVENT_EDIT_OPERATION</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">which allows you customize editing like dragging, copy/paste, resizing events ...</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"><br>But if you really want what you are asking for -- derive from CXTPCalendarControl and catch message CXTPCalendarControl::OnLButtonUp().</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">Default implenentation throws it to views, days, ...</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">Check if you are in dragging mode and need to cancel dragging, </span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">just call m_pActiveView-&gt;CancelDraggingEvent(); before calling base CXTPCalendarControl::OnLButtonUp().</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;">(or do not call base implementation at all).</span></div><div><span style="font-family: 'Courier New'; font-size: 12px; color: rgb(0, 0, 0); : transparent;"> </span><br></div>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sat, 04 Nov 2006 15:46:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5428&amp;PID=17011&amp;title=commitdraggingevent-is-called-too-early#17011</guid>
  </item> 
  <item>
   <title><![CDATA[CommitDraggingEvent is called too early : Hi! If I drag &amp;amp; move an event,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5428&amp;PID=17006&amp;title=commitdraggingevent-is-called-too-early#17006</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5428<br /><strong>Posted:</strong> 04 November 2006 at 5:48am<br /><br />Hi!<DIV><BR>If I drag &amp; move an event, it is of interest to cancel the movement when the user drops the item. That is, I have to catch the drop before CommitDraggingEvent is being called. I think I have tried everything now. My last attempt was to somehow overload all CXTPCalendarView-derived classes, but with no success.</DIV><DIV>&nbsp;</DIV><DIV>Please, help me out on this one! How do I cancel a dragmove _after_ the drop?</DIV>]]>
   </description>
   <pubDate>Sat, 04 Nov 2006 05:48:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5428&amp;PID=17006&amp;title=commitdraggingevent-is-called-too-early#17006</guid>
  </item> 
 </channel>
</rss>