<?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 &#101;vent to select</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Right-click &#101;vent to select]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 06:22:47 +0000</pubDate>
  <lastBuildDate>Thu, 04 May 2006 17:54:20 +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=4135</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 &#101;vent to select : Thanks, will fix that problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12686&amp;title=rightclick-event-to-select#12686</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4135<br /><strong>Posted:</strong> 04 May 2006 at 5:54pm<br /><br />Thanks, will fix that problem for a next version.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 04 May 2006 17:54:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12686&amp;title=rightclick-event-to-select#12686</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click &#101;vent to select : I have the same problem with v9.81...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12684&amp;title=rightclick-event-to-select#12684</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1792">TracyP</a><br /><strong>Subject:</strong> 4135<br /><strong>Posted:</strong> 04 May 2006 at 5:28pm<br /><br />I have the same problem with v9.81 ActiveX.<br>When an Event is selected, the Visible trick works. When a time is selected, it does not. <br>]]>
   </description>
   <pubDate>Thu, 04 May 2006 17:28:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12684&amp;title=rightclick-event-to-select#12684</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click &#101;vent to select : That&amp;#039;s a bit strange, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12683&amp;title=rightclick-event-to-select#12683</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4135<br /><strong>Posted:</strong> 04 May 2006 at 5:13pm<br /><br />That's a bit strange, but as a workaround try to replace simple call .RedrawControl to:<br><table width="99%"><tr><td><pre class="BBcode"><br>CalendarControl.Visible = False<br>CalendarControl.RedrawControl<br>CalendarControl.Visible = True<br></pre></td></tr></table><br><br>That should help <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 04 May 2006 17:13:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12683&amp;title=rightclick-event-to-select#12683</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click &#101;vent to select : Thanks Serge. That mostly works...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12679&amp;title=rightclick-event-to-select#12679</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=570">nighthawk</a><br /><strong>Subject:</strong> 4135<br /><strong>Posted:</strong> 04 May 2006 at 4:06pm<br /><br />Thanks Serge.&nbsp; That mostly works except that even if I call the RedrawControl prior to calling the popup menu, it still won't appear selected until after the popup menu goes away.&nbsp; For example, I modified the CalendarControl_ContextMenu in the sample program as follows:<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.ViewEvent Is Nothing Then<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  '***I added these two lines***<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.DayView.SelectViewEvent HitTest.ViewEvent, True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.RedrawControl<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ContextEvent = HitTest.ViewEvent.Event<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.PopupMenu mnuContexEditEvent<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ContextEvent = Nothing<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ElseIf (HitTest.HitCode = xtpCalendarHitTestDayViewTimeScale) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.PopupMenu mnuContextTimeScale<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.PopupMenu mnuContextNewEvent<br>&nbsp;&nbsp;&nbsp; End If<br></pre></td></tr></table><br><br>How do I make it appear selected before the popup menu is displayed?<br>]]>
   </description>
   <pubDate>Thu, 04 May 2006 16:06:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12679&amp;title=rightclick-event-to-select#12679</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click &#101;vent to select : Something like following: &amp;#039;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12676&amp;title=rightclick-event-to-select#12676</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4135<br /><strong>Posted:</strong> 04 May 2006 at 3:11pm<br /><br />Something like following:<br><table width="99%"><tr><td><pre class="BBcode"><br>' Detect clicked event<br>Dim HitTest As CalendarHitTestInfo<br>Set HitTest = CalendarControl.ActiveView.HitTest<br>' ...<br>' Select clicked event<br>CalendarControl.DayView.SelectViewEvent HitTest.ViewEvent, True<br></pre></td></tr></table><br><br>Also do not forget to redraw a control after selecting an event.<br><br>Look also at VB sample, CalendarControl_ContextMenu handler.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 04 May 2006 15:11:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12676&amp;title=rightclick-event-to-select#12676</guid>
  </item> 
  <item>
   <title><![CDATA[Right-click &#101;vent to select : When I right-click an event, I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12670&amp;title=rightclick-event-to-select#12670</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=570">nighthawk</a><br /><strong>Subject:</strong> 4135<br /><strong>Posted:</strong> 04 May 2006 at 12:53pm<br /><br />When I right-click an event, I want the event to become selected and then I want to pop up a menu.&nbsp; I have no problem getting the popup menu to appear (using the MouseDown event) but how do I select the event when right-clicking it? &nbsp;]]>
   </description>
   <pubDate>Thu, 04 May 2006 12:53:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4135&amp;PID=12670&amp;title=rightclick-event-to-select#12670</guid>
  </item> 
 </channel>
</rss>