<?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 : Undocumented calendar dependencies</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Undocumented calendar dependencies]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 19:13:43 +0000</pubDate>
  <lastBuildDate>Tue, 08 May 2018 13:14:42 +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=23637</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[Undocumented calendar dependencies : It looks like specifically creating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23637&amp;PID=76788&amp;title=undocumented-calendar-dependencies#76788</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9155">BobC</a><br /><strong>Subject:</strong> 23637<br /><strong>Posted:</strong> 08 May 2018 at 1:14pm<br /><br />It looks like specifically creating and using the caption bar theme is a big part of the problem. This code works, where GetTheme() is used in the AttachCalendar() call instead of using the declared caption bar theme itself:<div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>//<span style="white-space:pre">	</span>m_oCaptionBarTheme.SetPaintTheme(xtpCalendarThemeVisualStudio2015);</div><div>//<span style="white-space: pre;">	</span>m_calCaptionBar.SetTheme(&amp;m_oCaptionBarTheme);</div><div>//<span style="white-space: pre;">	</span>m_oCaptionBarTheme.AttachCalendar(&amp;m_calMain);</div><div><span style="white-space:pre">	</span>m_calCaptionBar.GetTheme()-&gt;AttachCalendar(&amp;m_calMain);</div></div><div></pre></td></tr></table></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 08 May 2018 13:14:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23637&amp;PID=76788&amp;title=undocumented-calendar-dependencies#76788</guid>
  </item> 
  <item>
   <title><![CDATA[Undocumented calendar dependencies : This post is venting at Codejock...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23637&amp;PID=76784&amp;title=undocumented-calendar-dependencies#76784</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9155">BobC</a><br /><strong>Subject:</strong> 23637<br /><strong>Posted:</strong> 07 May 2018 at 6:59pm<br /><br />This post is venting at Codejock documentation as much as it is a request for anyone with experience to tell me where I have gone wrong.<div><br></div><div>I'm using Xtreme Toolkit 18.3.0 with Visual Studio 15.7.0 on Windows 10, version 1709, build 16299.309.<br><div><br></div><div>I have a CXTPCalendarControl, a CXTPCalendarCaptionBarControl, and a CXTPCalendarCaptionBarTheme in a form view. They are declared in the form's header file as:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>CXTPCalendarCaptionBarTheme m_oCaptionBarTheme;</div><div>CXTPCalendarCaptionBarControl m_calCaptionBar;</div><div>CXTPCalendarControl m_calMain;</div><div></pre></td></tr></table></div><div><br></div><div>In the form's OnInitialUpdate(), these calls are made:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>m_oCaptionBarTheme.SetPaintTheme(xtpCalendarThemeVisualStudio2015);</div><div><br></div><div>m_calCaptionBar.SetTheme(&amp;m_oCaptionBarTheme);</div><div>m_calCaptionBar.EnableTimeline(FALSE);</div><div>m_calCaptionBar.EnableMulticolumns(FALSE);</div><div><br></div><div>m_calMain.ModifyStyle(0, WS_BORDER, SWP_FRAMECHANGED);</div><div>m_oCaptionBarTheme.AttachCalendar(&amp;m_calMain);</div><div><span style="white-space:pre">	</span></div><div>m_nDayScaleMinutes = m_calMain.GetCalendarOptions()-&gt;nDayView_ScaleInterval;</div><div><span style="white-space:pre">	</span></div><div>OnCalendarViewWorkWeek();</div><div><br></div><div>CXTPCalendarDayView* pDayView = DYNAMIC_DOWNCAST(CXTPCalendarDayView, m_calMain.GetDayView());</div><div>if(pDayView)</div><div>{</div><div><span style="white-space:pre">	</span>pDayView-&gt;ScrollToWorkDayBegin();</div><div>}</div><div><br></div><div>SetTheme(xtpCalendarThemeVisualStudio2015);</div><div></pre></td></tr></table></div><div><br></div><div>The contents of SetTheme() are the same as those in Codejock's calendar demo, minus the CCalendarDemoView's view-specific calls that do not apply to this form view, such as _ResizeControls() and the scrollbar handling.</div><div><br></div><div>1. It appears that there are no default settings in a caption bar for a theme if the user doesn't set one. If AttachCalendar() is called without first calling CXTPCaptionBar::SetTheme(), AttachCalendar() will fail because its m_pCaptionBar pointer is null.</div><div><br></div><div>A default theme would be good.</div><div><br></div><div>2. There is some sort of declaration dependency because different types of application shutdown crashes can occur within one of those classes, depending on declaration order.&nbsp;</div><div><br></div><div>For example, if declared in the order shown above, and the caption bar theme is set as in the code above, then on app shutdown, a heap corruption exception is thrown in the CXTPCalendarCaptionBarControl's destructor on its only line of code:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>CMDTARGET_RELEASE(m_pTheme);</div><div></pre></td></tr></table></div><div><br></div><div>I have not yet determined what the true cause of the heap corruption is.</div><div><br></div><div>Bob</div><div><br></div></div>]]>
   </description>
   <pubDate>Mon, 07 May 2018 18:59:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23637&amp;PID=76784&amp;title=undocumented-calendar-dependencies#76784</guid>
  </item> 
 </channel>
</rss>