<?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 : Drag/Drop</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Drag/Drop]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:57:42 +0000</pubDate>
  <lastBuildDate>Tue, 07 Mar 2006 22:48:51 +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=3457</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[Drag/Drop : I created a work around it by...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=11311&amp;title=drag-drop#11311</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1821">eSynaptic</a><br /><strong>Subject:</strong> 3457<br /><strong>Posted:</strong> 07 March 2006 at 10:48pm<br /><br />I created a work around it by dragging the label into the calendar then simulating a mouse click upon drop. Here is my code:<br /><br />'declarations<br />Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)<br />Const MOUSEEVENTF_LEFTDOWN = &H2<br />Const MOUSEEVENTF_LEFTUP = &H4<br />Const MOUSEEVENTF_RIGHTDOWN = &H8<br />Const MOUSEEVENTF_RIGHTUP = &H10<br /><br />'simulate a double click to fire the calendar's dblclick event<br />Private Sub CalendarControl_DragDrop(Source As Control, x As Single, y As Single)<br /><br />mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, x, y, 0, 0<br />mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, x, y, 0, 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />End Sub<br /><br />'get the selected times<br />Private Sub CalendarControl_DblClick()<br />Dim BeginTime As Date<br />Dim EndTime As Date<br />Dim bAllDay As Boolean<br /><br />CalendarControl.DayView.GetSelection BeginTime, EndTime, bAllDay<br /><br />Debug.Print BeginTime<br />Debug.Print EndTime<br /><br />End Sub]]>
   </description>
   <pubDate>Tue, 07 Mar 2006 22:48:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=11311&amp;title=drag-drop#11311</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop : David,Sorry, I&amp;#039;ve just realized...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=10405&amp;title=drag-drop#10405</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3457<br /><strong>Posted:</strong> 04 January 2006 at 6:07am<br /><br />David,<br><br>Sorry, I've just realized these members are not included in the ActiveX interface. So, for the next version 2 new properties will be added to CalendarHitTestInfo: <br>&nbsp;<br>DATE HitDateTime;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Date or Date and Time corresponding to the cursor position.&nbsp;&nbsp; <br><br>Boolean TimePartValid; ' true for the DayViewCell and DayViewTimeScale areas, <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; ' false for Week and Month views and for DayViewAllDayEvent area.<br>&nbsp;<br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Wed, 04 Jan 2006 06:07:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=10405&amp;title=drag-drop#10405</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop : Serge-  How would I use the HitTest()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=10391&amp;title=drag-drop#10391</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1699">dhnaigles</a><br /><strong>Subject:</strong> 3457<br /><strong>Posted:</strong> 03 January 2006 at 2:57pm<br /><br /><P>Serge-&nbsp; </P><P>How would I use the HitTest() method to retrieve the begin and/or end datetime?&nbsp; Can you give me an example of VB code that would return those values so that I can add an event?&nbsp; Thanks.</P><P>&nbsp;</P><P>David</P>]]>
   </description>
   <pubDate>Tue, 03 Jan 2006 14:57:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=10391&amp;title=drag-drop#10391</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop : Hi,It&amp;#039;s not yet available...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=10380&amp;title=drag-drop#10380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3457<br /><strong>Posted:</strong> 02 January 2006 at 9:44am<br /><br />Hi,<br><br>It's not yet available as a standard feature, but you can try to implement it with some of standards methods of your language, or catch mouse button down/up (/move) events as a workaround.<br><br>To determine the mouse position over the calendar you can use HitTest() method.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 02 Jan 2006 09:44:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=10380&amp;title=drag-drop#10380</guid>
  </item> 
  <item>
   <title><![CDATA[Drag/Drop : Is it possible to enable drag/drop....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=10379&amp;title=drag-drop#10379</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1699">dhnaigles</a><br /><strong>Subject:</strong> 3457<br /><strong>Posted:</strong> 31 December 2005 at 5:14pm<br /><br /><P>Is it possible to enable drag/drop. I have a label that I want to drag onto the calendar and create&nbsp;an event based upon the caption of the label and the date &amp; time where it is dropped?&nbsp; any ideas?</P>]]>
   </description>
   <pubDate>Sat, 31 Dec 2005 17:14:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3457&amp;PID=10379&amp;title=drag-drop#10379</guid>
  </item> 
 </channel>
</rss>