<?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 : &#069;vent click and drag HitTest.View&#069;vent</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : &#069;vent click and drag HitTest.View&#069;vent]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 05:14:40 +0000</pubDate>
  <lastBuildDate>Mon, 20 Mar 2006 07:08:03 +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=3766</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[&#069;vent click and drag HitTest.View&#069;vent : Hi, Another solution is to use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11538&amp;title=event-click-and-drag-hittest-viewevent#11538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3766<br /><strong>Posted:</strong> 20 March 2006 at 7:08am<br /><br /><P>Hi,</P><P>Another solution is to use ActiveView.getSelectedEvent(), since when you finish dragging the item, your event will eventually be selected.</P><P>Thus, u have a reference to your event.</P><P>Thnks</P><P>WaaZ</P>]]>
   </description>
   <pubDate>Mon, 20 Mar 2006 07:08:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11538&amp;title=event-click-and-drag-hittest-viewevent#11538</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent click and drag HitTest.View&#069;vent : Hi,Couple notes on how it works:BeforeEditOperation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11537&amp;title=event-click-and-drag-hittest-viewevent#11537</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3766<br /><strong>Posted:</strong> 20 March 2006 at 6:45am<br /><br />Hi,<br><br>Couple notes on how it works:<br><br>BeforeEditOperation is called for each dragging step - before each changing of pDraggingEventNew.<br><br>CalendarEditOperationParameters has 2 members: <br>-- DraggingEvent - contains an event copy for previous dragging step; actual value of pDraggingEventNew;<br>-- DraggingEventNew - contains a new event copy which will be set to pDraggingEventNew for this dragging step. Also you can cancel applying to restrict some kind of dragging (for example drag to some days or by other condition).<br>&nbsp;<br>For this case we have to remember the latest (not the first) copy of<br>CalendarEditOperationParameters.DraggingEventNew which contains event for the end of dragging operation. <br><br><br>Anyway, it looks a little bit strange, could you please describe in more details when do you call HitTest and how do you expect to receive a new event after dragging?<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 20 Mar 2006 06:45:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11537&amp;title=event-click-and-drag-hittest-viewevent#11537</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent click and drag HitTest.View&#069;vent : Normally, it works fine with the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11524&amp;title=event-click-and-drag-hittest-viewevent#11524</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3766<br /><strong>Posted:</strong> 19 March 2006 at 10:27am<br /><br /><P>Normally, it works fine with the non-recurring events. The mouse-down gives me a reference to the object, but still, it holds the old date values. Similar to the reference obtained in the before_Edit.. </P><P>If I use CloneEvent(), I will get a copy and I will not get the new date values for the change.</P><P>Thnks</P><P>WaaZ</P>]]>
   </description>
   <pubDate>Sun, 19 Mar 2006 10:27:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11524&amp;title=event-click-and-drag-hittest-viewevent#11524</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent click and drag HitTest.View&#069;vent : Quickly... In this case HitTest.ViewEvent...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11482&amp;title=event-click-and-drag-hittest-viewevent#11482</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3766<br /><strong>Posted:</strong> 16 March 2006 at 1:59pm<br /><br />Quickly... In this case HitTest.ViewEvent is null because a mouse pointer is not located over the event area.<br>&nbsp;<br>Try to use BeforeEditOperation event to store last dragged event state. This should be more independend on user speed <img border="0" src="http://forum.codejock.com/smileys/smiley1.gif" border="0"><br>&nbsp;<br>The idea is following:<br>---------------------------------------------------<br>BeforeEditOperation(CalendarEditOperationParameters* OpParams, BOOL* bCancelOperation)<br>{<br>&nbsp;&nbsp;&nbsp; if (OpParams.Operation = xtpCalendarEO_DragMove ||<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OpParams.Operation = xtpCalendarEO_DragCopy ) // ... xtpCalendarEO_DragXXX,&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (OpParams.DraggingEventNew != Null) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; g_pLastDraggedEvent = OpParams.DraggingEventNew.CloneEvent();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 16 Mar 2006 13:59:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11482&amp;title=event-click-and-drag-hittest-viewevent#11482</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent click and drag HitTest.View&#069;vent : I have removed all the Application.doevents...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11435&amp;title=event-click-and-drag-hittest-viewevent#11435</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3766<br /><strong>Posted:</strong> 15 March 2006 at 7:00am<br /><br /><P>I have removed all the Application.doevents since quite a long time, and I do not have a onMouseMove listener.</P><P>The problem is raised when you perform the click n drag really quickly.</P>]]>
   </description>
   <pubDate>Wed, 15 Mar 2006 07:00:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11435&amp;title=event-click-and-drag-hittest-viewevent#11435</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent click and drag HitTest.View&#069;vent : Hi,The problem can be in the CalendarControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11400&amp;title=event-click-and-drag-hittest-viewevent#11400</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3766<br /><strong>Posted:</strong> 13 March 2006 at 2:26pm<br /><br />Hi,<br><br>The problem can be in the CalendarControl because you call Application.doevents from OnMouseMove when dragging is still processing but OnMouseMove method (as well as LButtolDown, LButtolUp) is not reenterable. <br>&nbsp;<br>Just do not use DoEvents inside user interface processing chain. <br><br>Also I'd suggest you to look once more to the topic <a href="https://forum.codejock.com/forum_posts.asp?TID=3688&amp;TPN=1" target="_blank"> https://forum.codejock.com/forum_posts.asp?TID=3688&amp;TPN= 1</a><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 13 Mar 2006 14:26:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11400&amp;title=event-click-and-drag-hittest-viewevent#11400</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent click and drag HitTest.View&#069;vent : At times, when you drag an occurence,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11394&amp;title=event-click-and-drag-hittest-viewevent#11394</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3766<br /><strong>Posted:</strong> 13 March 2006 at 9:42am<br /><br /><P>At times, when you drag an occurence, <FONT size=2><strong>HitTest.ViewEvent</strong> returns null. If I listen to mouse down before that and get the reference to the occurence, I do not get the new values of the start and end time of the occurence (an exception). </FONT></P><P><FONT size=2>This does not always happen. It happens generally when you try to click and move the occurence very quickly.</FONT></P><P><FONT size=2>Thanks</FONT></P><P><FONT size=2>WaaZ</FONT></P>]]>
   </description>
   <pubDate>Mon, 13 Mar 2006 09:42:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3766&amp;PID=11394&amp;title=event-click-and-drag-hittest-viewevent#11394</guid>
  </item> 
 </channel>
</rss>