<?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 : right click on month view</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : right click on month view]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 07:25:31 +0000</pubDate>
  <lastBuildDate>Thu, 12 Apr 2007 09:53:10 +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=6845</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[right click on month view : OkI have added the code in but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21883&amp;title=right-click-on-month-view#21883</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2885">tejsingh</a><br /><strong>Subject:</strong> 6845<br /><strong>Posted:</strong> 12 April 2007 at 9:53am<br /><br />Ok<br><br>I have added the code in but still no joy.<br><br>I have created a menu similar to the calendar sample.<br><br>When i run the calendar Active-X control from VB it opens it in Internet explorer. <br><br>The code is exactly the same! but when i right click nothing happens!<br><br>I even created the ocx and ran it in Progress 4gl but that still didnt work.<br><br>any ideas?<br><br>Private Sub CalendarControl_ContextMenu(ByVal X As Single, ByVal Y As Single)<br><br>&nbsp;&nbsp;&nbsp; Dim HitTest As CalendarHitTestInfo<br>&nbsp;&nbsp;&nbsp; Set HitTest = CalendarControl.ActiveView.HitTest<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If Not HitTest.ViewEvent Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ContextEvent = HitTest.ViewEvent.Event<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'code for event popup goes here<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ContextEvent = Nothing<br>&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PopupMenu ContextNew<br>&nbsp;&nbsp;&nbsp; End If<br><br>End Sub<br>]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 09:53:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21883&amp;title=right-click-on-month-view#21883</guid>
  </item> 
  <item>
   <title><![CDATA[right click on month view : ok cool will give that a go! ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21882&amp;title=right-click-on-month-view#21882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2885">tejsingh</a><br /><strong>Subject:</strong> 6845<br /><strong>Posted:</strong> 12 April 2007 at 9:22am<br /><br />ok cool will give that a go!]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 09:22:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21882&amp;title=right-click-on-month-view#21882</guid>
  </item> 
  <item>
   <title><![CDATA[right click on month view : Private Sub CalendarControl_ContextMenu(ByVal...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21872&amp;title=right-click-on-month-view#21872</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2090">joeliner</a><br /><strong>Subject:</strong> 6845<br /><strong>Posted:</strong> 12 April 2007 at 7:42am<br /><br /><br>Private Sub CalendarControl_ContextMenu(ByVal X As Single, ByVal Y As Single)<br><br>&nbsp;&nbsp;&nbsp; Debug.Print "On context menu"<br>&nbsp;&nbsp; &nbsp;<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.ViewEvent Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ContextEvent = HitTest.ViewEvent.Event<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  'code for event popup goes here<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ContextEvent = Nothing<br>&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  'code for calendar popup goes here<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  '<br>&nbsp;&nbsp;&nbsp; End If<br><br>End Sub<br>&nbsp;]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 07:42:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21872&amp;title=right-click-on-month-view#21872</guid>
  </item> 
  <item>
   <title><![CDATA[right click on month view : Try use the contextMenu Event...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21871&amp;title=right-click-on-month-view#21871</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2090">joeliner</a><br /><strong>Subject:</strong> 6845<br /><strong>Posted:</strong> 12 April 2007 at 7:28am<br /><br />Try use the contextMenu Event rather.<br><br>It works well. See the calendar sample.<br>]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 07:28:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21871&amp;title=right-click-on-month-view#21871</guid>
  </item> 
  <item>
   <title><![CDATA[right click on month view : HiI want to add an event when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21869&amp;title=right-click-on-month-view#21869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2885">tejsingh</a><br /><strong>Subject:</strong> 6845<br /><strong>Posted:</strong> 12 April 2007 at 7:00am<br /><br /><font size="2"><font face="Verdana, Arial, Helvetica, sans-serif">Hi<br><br>I want to add an event when right clicking on a month view.<br><br>I currently have it working for right click events. But want it so that if in the month view i right click i it to fire the event and pass the dates through to my progress 4gl. <br><br>Looked at samples but they didnt help<br><br>It is it to do with hittest?<br><br>i have added the current code below:<br><br><font color="#000099">Private Sub Calendar_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)<br>&nbsp;&nbsp;&nbsp; Dim hHit As CalendarHitTestInfo<br>&nbsp;&nbsp;&nbsp; Dim StartDate As Date<br>&nbsp;&nbsp;&nbsp; Dim EndDate As Date<br>&nbsp;&nbsp;&nbsp; Dim cName As String<br>&nbsp;&nbsp;&nbsp; 'Dim Popup As CommandBar<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If Button = 2 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select Case Calendar.ViewType<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpCalendarDayView, xtpCalendarWorkWeekView<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set hHit = Calendar.DayView.HitTest<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpCalendarWeekView<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set hHit = Calendar.WeekView.HitTest<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpCalendarMonthView<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set hHit = Calendar.MonthView.HitTest<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Select<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp; Set Popup = CommandBars.Add("Popup", xtpBarPopup)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With Popup.Controls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_NEW_APPOINTMENT, "Add New Appointment"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_ALL_DAY_EVENT, "Add All Day Event"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_ADD_MEETING, "Add Meeting Request"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp; Popup.ShowPopup<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not hHit Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not hHit.ViewEvent Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RaiseEvent EventRClick(hHit.ViewEvent.Event)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select Case Calendar.ViewType<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpCalendarDayView, xtpCalendarWorkWeekView<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StartDate = Calendar.DayView.Selection.Begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndDate = Calendar.DayView.Selection.End<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpCalendarWeekView<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StartDate = Calendar.DayView.Selection.Begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndDate = Calendar.DayView.Selection.End<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpCalendarMonthView<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StartDate = Calendar.DayView.Selection.Begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndDate = Calendar.DayView.Selection.End<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Select<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not hHit.ViewGroup Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cName = hHit.ViewGroup.MultipleResources.Item(0).Name<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If hHit.HitDateTime &gt;= StartDate And hHit.HitDateTime &lt;= EndDate Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RaiseEvent RClick(StartDate, EndDate, cName)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>End Sub</font><br></font></font>]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 07:00:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6845&amp;PID=21869&amp;title=right-click-on-month-view#21869</guid>
  </item> 
 </channel>
</rss>