<?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 : Calendar Query</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Calendar Query]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Apr 2026 07:06:14 +0000</pubDate>
  <lastBuildDate>Tue, 18 Mar 2008 04:01:33 +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=4079</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[Calendar Query : Small addition, another way to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=32356&amp;title=calendar-query#32356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3684">dwise</a><br /><strong>Subject:</strong> 4079<br /><strong>Posted:</strong> 18 March 2008 at 4:01am<br /><br />Small addition, another way to select an event by it's key:<DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">Private Sub SelectEventInView(ByRef prmCalendar As XtremeCalendarControl.CalendarControl, prmAgendaId As Long)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim objViewGroup As XtremeCalendarControl.CalendarViewGroup<BR>&nbsp;&nbsp;&nbsp; Dim objViewEvent As XtremeCalendarControl.CalendarViewEvent<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; For Each objViewGroup In prmCalendar.ActiveView(0).ViewGroups<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each objViewEvent In objViewGroup.ViewEvents<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If objViewEvent.Event.id = prmAgendaId Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objViewEvent.Selected = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp; <BR>End Sub</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif">Note: apparantly this only works if the view is set to week or day view.</FONT></DIV>]]>
   </description>
   <pubDate>Tue, 18 Mar 2008 04:01:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=32356&amp;title=calendar-query#32356</guid>
  </item> 
  <item>
   <title><![CDATA[Calendar Query : Aha!  That did the trick.Thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12639&amp;title=calendar-query#12639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1945">dneilsen</a><br /><strong>Subject:</strong> 4079<br /><strong>Posted:</strong> 03 May 2006 at 6:46pm<br /><br />Aha! &nbsp; That did the trick.<br>Thanks very much sserge.<br><br>For those that may be interested in this solution here is the code<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.SelectionChanged += new  AxXtremeCalendarControl._DCalendarControlEvents_SelectionCha ngedEventHandler(TSCalendar_SelectionChanged); <br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; private int getViewIndex(DateTime myDate)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for(int i=0; i&lt;this.ActiveView.DaysCount; i++)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DateTime dt = this.ActiveView<em>.Date;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(dt.Day == myDate.Day &amp;&amp; dt.Month == myDate.Month)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return i;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return 0;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; private void TSCalendar_SelectionChanged(object sender, _DCalendarControlEvents_SelectionChangedEvent e)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch(e.selType)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case  CalendarSelectionChanged.xtpCalendarSelectionDays:&nbsp;&nbs p;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //Select the first event in the day<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bool fullday = true;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DateTime startDate = DateTime.MinValue;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DateTime endDate = DateTime.MinValue;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.MonthView.GetSelection(ref startDate, ref endDate, ref fullday);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int index = getViewIndex(startDate);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.ActiveView.SelectViewEvent(this.ActiveView&#091;index&#093;&#091;0&#093;, true);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case CalendarSelectionChanged.xtpCalendarSelectionEvents:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //Force edit of the selected event and mark the data<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.Windows.Forms.SendKeys.Send("{F2}");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.Windows.Forms.SendKeys.Send("+{END}");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br></pre></td></tr></table><br><br><br><br>]]>
   </description>
   <pubDate>Wed, 03 May 2006 18:46:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12639&amp;title=calendar-query#12639</guid>
  </item> 
  <item>
   <title><![CDATA[Calendar Query :    dneilsen wrote:It may be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12595&amp;title=calendar-query#12595</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4079<br /><strong>Posted:</strong> 03 May 2006 at 6:56am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by dneilsen" alt="Originally posted by dneilsen" style="vertical-align: text-bottom;" /> <strong>dneilsen wrote:</strong><br /><br /><br>It may be something I have done but it seems that the Days collection does not exist in any of the active views even though the documentation shows that it should exist.<br></td></tr></table><br><br>Days is a default property and you can access it as this.ActiveView<em><br>&nbsp;<br>EXAMPLE:<br>DateTime dt = wndCalendarControl.ActiveView&#091;0&#093;.Date;<br>&nbsp;<br>NOTE: <br>C# does not allow access to ActiveView.Days, but VB allow both variants.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Wed, 03 May 2006 06:56:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12595&amp;title=calendar-query#12595</guid>
  </item> 
  <item>
   <title><![CDATA[Calendar Query : Hi, There is a mathematical function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12593&amp;title=calendar-query#12593</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 4079<br /><strong>Posted:</strong> 03 May 2006 at 6:01am<br /><br /><P>Hi,</P><P>There is a mathematical function that is present to convert RGB(r,g,b) to uins as follows:</P><P>(b*256*256) + (g*256) + (r)</P><P>WaaZ</P>]]>
   </description>
   <pubDate>Wed, 03 May 2006 06:01:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12593&amp;title=calendar-query#12593</guid>
  </item> 
  <item>
   <title><![CDATA[Calendar Query : I am still having some major trouble...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12591&amp;title=calendar-query#12591</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1945">dneilsen</a><br /><strong>Subject:</strong> 4079<br /><strong>Posted:</strong> 03 May 2006 at 2:49am<br /><br />I am still having some major trouble with number one<br><br>It may be something I have done but it seems that the Days collection does not exist in any of the active views even though the documentation shows that it should exist.<br><br>Here is the code I am trying...<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; private void TSCalendar_MouseDownEvent(object sender, _DCalendarControlEvents_MouseDownEvent e)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(e.button == 1)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //left click mouse events<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CalendarHitTestInfo HitTest;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; HitTest = this.ActiveView.HitTest();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (HitTest.HitCode == CalendarHitTestCode.xtpCalendarHitTestDayArea ||<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; HitTest.HitCode == CalendarHitTestCode.xtpCalendarHitTestDayHeader) <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.ActiveView.SetSelection(HitTest.HitDateTime, HitTest.HitDateTime, true);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //this.ActiveView.Days<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br></pre></td></tr></table><br><br>The problem is, if I cannot determine the viewevent, then I cannot select it....<br><br>I must be doing something wrong here?<br><br><br><br><br><br>]]>
   </description>
   <pubDate>Wed, 03 May 2006 02:49:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12591&amp;title=calendar-query#12591</guid>
  </item> 
  <item>
   <title><![CDATA[Calendar Query : ok thanks, ill have another stab...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12566&amp;title=calendar-query#12566</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1945">dneilsen</a><br /><strong>Subject:</strong> 4079<br /><strong>Posted:</strong> 01 May 2006 at 6:12pm<br /><br />ok thanks, ill have another stab at it with that new information and let you know how I get on]]>
   </description>
   <pubDate>Mon, 01 May 2006 18:12:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12566&amp;title=calendar-query#12566</guid>
  </item> 
  <item>
   <title><![CDATA[Calendar Query : Hi,1) See method: XtremeCalend...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12525&amp;title=calendar-query#12525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4079<br /><strong>Posted:</strong> 29 April 2006 at 5:18pm<br /><br />Hi,<br><br>1) See method: XtremeCalendarControl.CalendarView.SelectViewEvent(ViewEvent As CalendarViewEvent, Select As Boolean)<br><br>Also look at: XtremeCalendarControl.CalendarView.Days -&gt; ViewGroups -&gt; ViewEvents -&gt; ViewEvent - is CalendarViewEvent.<br><br>2) There are no standard way to do that, but I can image a following workaround for you:<br>When user pess the key a new event is created and subject editing is started but you can disable this in calendar options or using IsEditOperationDisabled.<br>Then you'll have to imitate F2 key press to start editing subject (use SendMessage(WM_KEYDOWN, ...))<br>Then get a focused window - this is a standard CEdit control. Use SendMessage and CEdit control messages to set a new text and cursor position.<br>See also: BeforeEditOperation and KeyDown events.<br><br>3) See CalendarDataProvider.LabelList collection.<br><br>4) For a moment no, only RGB(...). Might be possible is future versions.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sat, 29 Apr 2006 17:18:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12525&amp;title=calendar-query#12525</guid>
  </item> 
  <item>
   <title><![CDATA[Calendar Query : Hi guys,What I am trying to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12489&amp;title=calendar-query#12489</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1945">dneilsen</a><br /><strong>Subject:</strong> 4079<br /><strong>Posted:</strong> 27 April 2006 at 11:57pm<br /><br />Hi guys,<br><br>What I am trying to create is a control that looks like a month view of a calendar and on each day, it has an editable field that contains a value.&nbsp; This control will be used for a timesheet where users can enter in daily hours.<br><br>So far I have I have created an inherited control from the&nbsp; XtremeCalendarControl where each day has a single event in it and this is working quite well.<br><br>I have a few issues that I have been unable to find answers for however:<br><br>1) When the user clicks on a day I would like the event to be selected.&nbsp; I know what the event is but how can I programmatically select the event?<br><br>2) When an event is selected (eg. clicked on) I would like the value contained in the event highlighted automatically.&nbsp; (ie. so the user can just type the new value rather than having to delete the existing value).&nbsp; Anyone know how to do this?<br><br>3) I would like to set the event label background colour to a custom colour and I have been able to do this by entering in an uint in a new label.&nbsp; However.... where do these uint values come from?&nbsp; eg. If I have RGB(255,0,0), what is the uint value?<br><br>4) In relation to number 3 above, is it possible to set the colour as transparent?<br><br>Any help would be appreciated.<br><br><br>]]>
   </description>
   <pubDate>Thu, 27 Apr 2006 23:57:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4079&amp;PID=12489&amp;title=calendar-query#12489</guid>
  </item> 
 </channel>
</rss>