<?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 : Change Header background for a single day</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Change Header background for a single day]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 28 May 2026 08:15:36 +0000</pubDate>
  <lastBuildDate>Wed, 06 Jul 2011 14:06:30 +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=18474</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[Change Header background for a single day : You need BeforeDrawThemeObject...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18474&amp;PID=65144&amp;title=change-header-background-for-a-single-day#65144</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 18474<br /><strong>Posted:</strong> 06 July 2011 at 2:06pm<br /><br />You need BeforeDrawThemeObject:<br><br>CalendarControl.BeforeDrawThemeObjectFlags = -1<br><br>Private Sub CalendarControl_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 = CalendarControl.Theme<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If eObjType = xtpCalendarBeforeDraw_MonthViewDay Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTheme2007.MonthView.Day.BackgroundDarkColor = vbWhite<br>&nbsp;&nbsp;&nbsp; End If<br><br>End Sub <br>]]>
   </description>
   <pubDate>Wed, 06 Jul 2011 14:06:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18474&amp;PID=65144&amp;title=change-header-background-for-a-single-day#65144</guid>
  </item> 
  <item>
   <title><![CDATA[Change Header background for a single day :   Hi,  is it possible to change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18474&amp;PID=64667&amp;title=change-header-background-for-a-single-day#64667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5589">mri0202</a><br /><strong>Subject:</strong> 18474<br /><strong>Posted:</strong> 31 May 2011 at 4:01am<br /><br />Hi,<br><br>is it possible to change the header backcolor for a single day, when in month-, week- or dayview?<br><br>I want to change the background color, when it's a holiday.<br><br>My example changes the background color of all shown days, not for a single day<br>What's wrong?<br><br>Example<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If lFeiertagKz = False Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lErgebnis = ftFeierTagEmitteln(Params.Date)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print Params.Date<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If lErgebnis &lt;&gt; 0 Then<br>&nb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p;&nbsp;&nbsp; pTheme2007.MonthView.Day.BackgroundLightColor = 13095160<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTheme2007.MonthView.Day.BackgroundSelectedColor = vbRed<br>&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case xtpCalendarBeforeDraw_WeekViewDay<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTheme2007.WeekView.Day.Header.BaseColor = vbRed<br>&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp; <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; End If<br><br><br>Thanks in advance<br><br>Manfred<br>]]>
   </description>
   <pubDate>Tue, 31 May 2011 04:01:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18474&amp;PID=64667&amp;title=change-header-background-for-a-single-day#64667</guid>
  </item> 
 </channel>
</rss>