<?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 : Help on Multiple Resources/Customized Calendar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Help on Multiple Resources/Customized Calendar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 02:21:50 +0000</pubDate>
  <lastBuildDate>Sun, 24 Feb 2008 12:06:13 +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=9663</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[Help on Multiple Resources/Customized Calendar : thank you very much dentor.your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31532&amp;title=help-on-multiple-resources-customized-calendar#31532</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 24 February 2008 at 12:06pm<br /><br />thank you very much dentor.<br><br>your code will give me a head start on what im trying to accomplish.<br><br>again thank you!<br>]]>
   </description>
   <pubDate>Sun, 24 Feb 2008 12:06:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31532&amp;title=help-on-multiple-resources-customized-calendar#31532</guid>
  </item> 
  <item>
   <title><![CDATA[Help on Multiple Resources/Customized Calendar : Hello,  Here some codes to explain...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31530&amp;title=help-on-multiple-resources-customized-calendar#31530</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1646">dentor</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 24 February 2008 at 8:58am<br /><br />Hello, <DIV>Here some codes to explain more the method:</DIV><DIV>&nbsp;</DIV><DIV>Calendar1 is the Employees Calendar, Calendar2 is the Appointment Calendar.</DIV><DIV>&nbsp;</DIV><DIV>' *** Global variables to avoid to read the&nbsp;Employees Calendar&nbsp;every time cell Appointment Calendar is drawing&nbsp;</DIV><DIV>Dim DtT As Date, StartT As Date, EndT As Date</DIV><DIV>&nbsp;</DIV><DIV>' *** The BeforeDrawThemeObject Event</DIV><DIV>Private Sub Calendar2_BeforeDrawThemeObject(ByVal eObjType As XtremeCalendarControl.CalendarBeforeDrawThemeObject, ByVal DrawParams As Variant)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim pTheme2007 As CalendarThemeOffice2007<BR>&nbsp;&nbsp;&nbsp; Set pTheme2007 = Calendar2.Theme</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; If eObjType = xtpCalendarBeforeDraw_DayViewCell Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim pCell As CalendarThemeDayViewCellParams<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pCell = DrawParams<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not pCell.Selected Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If OnlyDay(DtT) &lt;&gt; OnlyDay(pCell.BeginTime) Then ReadBreaks pCell.BeginTime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If pCell.BeginTime &gt;= StartT And pCell.BeginTime &lt; EndT Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTheme2007.DayView.Day.Group.Cell.WorkCell.BackgroundColor = vbRed<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End If</DIV><DIV>&nbsp;</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>' *** The sub to retrieve the red time block in the first calendar (red event is supposed to have a label property to 1, this can be changed of course).&nbsp;Only one red time block is supposed by day.</DIV><DIV>Sub ReadBreaks(Dt As Date)<BR>Dim CollDayEv As CalendarEvents<BR>Dim Evt As CalendarEvent<BR>Dim i As Long</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; StartT = 0<BR>&nbsp;&nbsp;&nbsp; EndT = 0<BR>&nbsp;&nbsp;&nbsp; DtT = Dt<BR>&nbsp;&nbsp;&nbsp; Set CollDayEv = Calendar1.DataProvider.RetrieveDayEvents(Dt)<BR>&nbsp;&nbsp;&nbsp; With CollDayEv<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If .Count &gt; 0 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 0 To .Count - 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Evt = .Event(i)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Evt.Label = 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StartT = Evt.StartTime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndT = Evt.EndTime<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit For<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; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End With<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>' *** Just a function to get only the day from date variable.</DIV><DIV>Function OnlyDay(ByVal Dt As Date) As String<BR>&nbsp;&nbsp;&nbsp; OnlyDay = Format(Dt, "dd/mm/yyyy")<BR>End Function<BR></DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 24 Feb 2008 08:58:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31530&amp;title=help-on-multiple-resources-customized-calendar#31530</guid>
  </item> 
  <item>
   <title><![CDATA[Help on Multiple Resources/Customized Calendar : thanks dentor!could you give me...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31529&amp;title=help-on-multiple-resources-customized-calendar#31529</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 24 February 2008 at 6:10am<br /><br />thanks dentor!<br><br>could you give me a pseudo code on how to use the RetrieveDayEvents Method on the BeforeDrawThemeObject event?<br>]]>
   </description>
   <pubDate>Sun, 24 Feb 2008 06:10:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31529&amp;title=help-on-multiple-resources-customized-calendar#31529</guid>
  </item> 
  <item>
   <title><![CDATA[Help on Multiple Resources/Customized Calendar : Hello,  The challenge is that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31527&amp;title=help-on-multiple-resources-customized-calendar#31527</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1646">dentor</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 24 February 2008 at 5:16am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>The challenge is that you want to customize a first calendar control (Appointments), from a second table of calendar events (employee schedule).</DIV><DIV>&nbsp;</DIV><DIV>I think that the best way is to open the Employee Schedule in a calendar control, and use RetrieveDayEvents Method to get all the events&nbsp;of the date concerning (all events&nbsp;recurring or not) and&nbsp;customize the second calendar control (Appointments) with the data retrieve in the first one, with BeforeDrawThemeObject event (do only one RetrieveDaysEvents read for each day).</DIV><DIV>&nbsp;</DIV><DIV>You can also lock modifying, and creating event &nbsp;to not cover the red block event by testing EndTime and StartTime of the event in the EventAdded or EventChanged events.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 24 Feb 2008 05:16:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31527&amp;title=help-on-multiple-resources-customized-calendar#31527</guid>
  </item> 
  <item>
   <title><![CDATA[Help on Multiple Resources/Customized Calendar :  i tried using your code but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31516&amp;title=help-on-multiple-resources-customized-calendar#31516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 23 February 2008 at 10:26am<br /><br />i tried using your code but its not even being fired. i dont know why<br><br>edit:<br><br>ok. your code worked after setting BeforeDrawThemeObjectFlags = -1<br>but i really wanted to customize the cells after setting the theme to office2007. i think i could make a workaround if only i could get the date arrays of the recurring events. is this even possible?<br><br>thanks again!<br>]]>
   </description>
   <pubDate>Sat, 23 Feb 2008 10:26:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31516&amp;title=help-on-multiple-resources-customized-calendar#31516</guid>
  </item> 
  <item>
   <title><![CDATA[Help on Multiple Resources/Customized Calendar : thanks for your reply dentor.but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31510&amp;title=help-on-multiple-resources-customized-calendar#31510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 23 February 2008 at 10:20am<br /><br />thanks for your reply dentor.<br><br>but is there a way to to personalize/customize cell drawing after the office2007 theme has been applied? i wanted to personalize the cells after i have added the resources.<br><br>if its not possible, is there also a way to get the date arrays of the recurring events? maybe i can just use these date arrays to personalize the cells.&nbsp; i just dont know how to get the date arrays of the recurring events.<br>]]>
   </description>
   <pubDate>Sat, 23 Feb 2008 10:20:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31510&amp;title=help-on-multiple-resources-customized-calendar#31510</guid>
  </item> 
  <item>
   <title><![CDATA[Help on Multiple Resources/Customized Calendar : When using a theme (ex: office2007),...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31504&amp;title=help-on-multiple-resources-customized-calendar#31504</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1646">dentor</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 23 February 2008 at 6:12am<br /><br />When using a theme (ex: office2007), we can use BeforeDrawThemeObject event to personalize the cell drawing.<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>For example to change the background cell for lunch time:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub Calendar_BeforeDrawThemeObject(ByVal eObjType As XtremeCalendarControl.CalendarBeforeDrawThemeObject, ByVal DrawParams As Variant)<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; Dim pTheme2007 As CalendarThemeOffice2007<BR>&nbsp;&nbsp;&nbsp; Set pTheme2007 = Calendar.Theme<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If eObjType = xtpCalendarBeforeDraw_DayViewCell Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim pCell As CalendarThemeDayViewCellParams<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pCell = DrawParams<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not pCell.Selected Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If TimeValue(pCell.BeginTime) &gt;= CDate("12:00") And TimeValue(pCell.BeginTime) &lt; CDate("14:00") And Weekday(pCell.BeginTime) &lt;&gt; 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTheme2007.DayView.Day.Group.Cell.WorkCell.BackgroundColor = pTheme2007.DayView.Day.Group.Cell.NonWorkCell.BackgroundColor<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End If</DIV><DIV>&nbsp;</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Perhaps, it could help you do the trick.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 23 Feb 2008 06:12:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31504&amp;title=help-on-multiple-resources-customized-calendar#31504</guid>
  </item> 
  <item>
   <title><![CDATA[Help on Multiple Resources/Customized Calendar : you are right, the BeforeDrawDayViewCell...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31498&amp;title=help-on-multiple-resources-customized-calendar#31498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 22 February 2008 at 6:33pm<br /><br />you are right, the BeforeDrawDayViewCell is not being fired under office2007 theme. is there a workaround?<br><br>thanks again.<br>]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 18:33:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31498&amp;title=help-on-multiple-resources-customized-calendar#31498</guid>
  </item> 
  <item>
   <title><![CDATA[Help on Multiple Resources/Customized Calendar : You are right ! The BeforeDrawDayViewCell...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31487&amp;title=help-on-multiple-resources-customized-calendar#31487</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2958">wlcabral</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 22 February 2008 at 12:27pm<br /><br />You are right !<DIV>The BeforeDrawDayViewCell event must be used when you want to change the background's cell color.</DIV><DIV>The problem is :&nbsp; This event has no effect if your calendar has a Theme (like office 2007)...</DIV>]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 12:27:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31487&amp;title=help-on-multiple-resources-customized-calendar#31487</guid>
  </item> 
  <item>
   <title><![CDATA[Help on Multiple Resources/Customized Calendar : it is not the background color...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31472&amp;title=help-on-multiple-resources-customized-calendar#31472</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 9663<br /><strong>Posted:</strong> 22 February 2008 at 9:32am<br /><br />it is not the background color of the event im after.. its the background of the cell.]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 09:32:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9663&amp;PID=31472&amp;title=help-on-multiple-resources-customized-calendar#31472</guid>
  </item> 
 </channel>
</rss>