<?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 : Use the HitTest to determine the resource clicked</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Use the HitTest to determine the resource clicked]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 28 May 2026 08:17:56 +0000</pubDate>
  <lastBuildDate>Tue, 19 Apr 2011 05:43:27 +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=18240</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[Use the HitTest to determine the resource clicked : You&amp;#039;re welcome...Glad I could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63979&amp;title=use-the-hittest-to-determine-the-resource-clicked#63979</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18240<br /><strong>Posted:</strong> 19 April 2011 at 5:43am<br /><br />You're welcome...<br><br>Glad I could help.]]>
   </description>
   <pubDate>Tue, 19 Apr 2011 05:43:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63979&amp;title=use-the-hittest-to-determine-the-resource-clicked#63979</guid>
  </item> 
  <item>
   <title><![CDATA[Use the HitTest to determine the resource clicked : Thanks heaps Xander, that&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63978&amp;title=use-the-hittest-to-determine-the-resource-clicked#63978</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3873">RedFin</a><br /><strong>Subject:</strong> 18240<br /><strong>Posted:</strong> 19 April 2011 at 5:41am<br /><br /><p>Thanks heaps Xander, that's perfect :)</p>]]>
   </description>
   <pubDate>Tue, 19 Apr 2011 05:41:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63978&amp;title=use-the-hittest-to-determine-the-resource-clicked#63978</guid>
  </item> 
  <item>
   <title><![CDATA[Use the HitTest to determine the resource clicked :  Hi,Ok I see what you mean, never...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63977&amp;title=use-the-hittest-to-determine-the-resource-clicked#63977</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18240<br /><strong>Posted:</strong> 19 April 2011 at 5:01am<br /><br />Hi,<br><br>Ok I see what you mean, never used the ResourceManager before but using the VB Calendar sample I added several resources and with the following code I was able to determine which Resource was clicked on.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; Dim HitTest As CalendarHitTestInfo<br>&nbsp;&nbsp;&nbsp; Set HitTest = CalendarControl.ActiveView.HitTest<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If Not HitTest.ViewGroup Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "Resource: " &amp; HitTest.ViewGroup.MultipleResources.Item(0).Name<br>&nbsp;&nbsp;&nbsp; End If<br></pre></td></tr></table><br><br>]]>
   </description>
   <pubDate>Tue, 19 Apr 2011 05:01:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63977&amp;title=use-the-hittest-to-determine-the-resource-clicked#63977</guid>
  </item> 
  <item>
   <title><![CDATA[Use the HitTest to determine the resource clicked : Thanks Xander. By resource I mean...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63973&amp;title=use-the-hittest-to-determine-the-resource-clicked#63973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3873">RedFin</a><br /><strong>Subject:</strong> 18240<br /><strong>Posted:</strong> 19 April 2011 at 4:42am<br /><br /><p>Thanks Xander. &nbsp;By resource I mean that each day in the calendar can have a number of resources within it - eg. Room 1, Room 2 -</p><p><br></p><p><img src="uploads/3873/CalendarResources.PNG" height="158" width="819" border="0" /></p><p><br></p><p>When the user clicks in the calendar a custom form opens for creating a booking. &nbsp;I need to be able to pass the resource that was clicked to the custom booking form.</p><p><br></p><p>Thanks,</p><p>Rohan</p>]]>
   </description>
   <pubDate>Tue, 19 Apr 2011 04:42:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63973&amp;title=use-the-hittest-to-determine-the-resource-clicked#63973</guid>
  </item> 
  <item>
   <title><![CDATA[Use the HitTest to determine the resource clicked : Hi,By resource do you mean the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63968&amp;title=use-the-hittest-to-determine-the-resource-clicked#63968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18240<br /><strong>Posted:</strong> 19 April 2011 at 3:35am<br /><br />Hi,<br><br>By resource do you mean the Calendar Event? <br><br>If so then the following code works for me:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; Dim cEvent As CalendarEvent<br>&nbsp;&nbsp;&nbsp; Dim HitTest As CalendarHitTestInfo<br>&nbsp;&nbsp;&nbsp; Set HitTest = CalendarControl.ActiveView.HitTest<br><br>&nbsp;&nbsp;&nbsp; If Not HitTest.ViewEvent Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set cEvent = HitTest.ViewEvent.Event<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Print some of the info for the event, there is more available within cEvent<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print cEvent.Subject<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print cEvent.Location<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print cEvent.Body<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print cEvent.StartTime<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print cEvent.EndTime<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print cEvent.Importance<br><br>&nbsp;&nbsp;&nbsp; End If<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Tue, 19 Apr 2011 03:35:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63968&amp;title=use-the-hittest-to-determine-the-resource-clicked#63968</guid>
  </item> 
  <item>
   <title><![CDATA[Use the HitTest to determine the resource clicked : Hi,  I am displaying a number...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63960&amp;title=use-the-hittest-to-determine-the-resource-clicked#63960</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3873">RedFin</a><br /><strong>Subject:</strong> 18240<br /><strong>Posted:</strong> 18 April 2011 at 6:22pm<br /><br /><p>Hi,</p><p>I am displaying a number of resources in my calendar. &nbsp;I am using the HitTest object to ascertain the Date/Time clicked, and while I can use the HitTest object to access information about&nbsp;<em>all</em> resources, I would like to be able to find out which resource I actually clicked on. &nbsp;Would anyone be able to help me with this please?</p><p><br></p><p>Thanks,</p><p><br></p><p>Rohan</p>]]>
   </description>
   <pubDate>Mon, 18 Apr 2011 18:22:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18240&amp;PID=63960&amp;title=use-the-hittest-to-determine-the-resource-clicked#63960</guid>
  </item> 
 </channel>
</rss>