<?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 : Exception in TaskPanel custom theme (XTP 10.2)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Exception in TaskPanel custom theme (XTP 10.2)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 23:28:06 +0000</pubDate>
  <lastBuildDate>Sun, 30 Jul 2006 06:20:24 +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=4674</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[Exception in TaskPanel custom theme (XTP 10.2) : Thanks, it helped.  Irit. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14457&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14457</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1245">VioletRose</a><br /><strong>Subject:</strong> 4674<br /><strong>Posted:</strong> 30 July 2006 at 6:20am<br /><br />Thanks, it helped.<DIV>&nbsp;</DIV><DIV>Irit.</DIV>]]>
   </description>
   <pubDate>Sun, 30 Jul 2006 06:20:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14457&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14457</guid>
  </item> 
  <item>
   <title><![CDATA[Exception in TaskPanel custom theme (XTP 10.2) : Hi, Try move code from constructor...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14444&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14444</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4674<br /><strong>Posted:</strong> 28 July 2006 at 12:48pm<br /><br />Hi,<DIV>Try move code from constructor to refreshmetrics and call base class refreshmetrics:</DIV><DIV>&nbsp;</DIV><DIV>class CCustomTaskPanelTheme : public CXTPTaskPanelExplorerTheme<BR>{<BR>public:<BR>&nbsp;CCustomTaskPanelTheme();<BR>&nbsp;void RefreshMetrics();<BR>};</DIV><DIV>CCustomTaskPanelTheme::CCustomTaskPanelTheme()<BR>{</DIV><DIV>}</DIV><DIV><BR>void CCustomTaskPanelTheme::RefreshMetrics()</DIV><DIV>{<BR>&nbsp;CXTPTaskPanelExplorerTheme::RefreshMetrics();<BR>&nbsp;<BR>&nbsp;m_bExplorerTheme = true;<BR>&nbsp;<BR>&nbsp;m_bBoldCaption = false;<BR>&nbsp;<BR>&nbsp;m_bOfficeBorder = true;<BR>&nbsp;<BR>&nbsp;m_clrBackground.SetCustomValue(RGB(255,255,255), RGB(255,255,255));<BR>&nbsp;<BR>&nbsp;m_bLeftRoundedCorner = true;<BR>&nbsp;<BR>&nbsp;m_bOfficeHighlight = true;<BR>&nbsp;<BR>&nbsp;m_groupNormal.clrClient.SetStandardValue(RGB(243, 243, 243));<BR>&nbsp;<BR>&nbsp;m_groupNormal.clrHead.SetStandardValue(RGB(224, 223, 227));<BR>&nbsp;<BR>&nbsp;m_groupSpecial.clrClient.SetStandardValue(RGB(243, 243, 243));<BR>&nbsp;<BR>&nbsp;m_groupSpecial.clrHead.SetCustomValue(RGB(0, 44, 151), RGB(196, 218, 50));<BR>&nbsp;<BR>&nbsp;m_groupSpecial.clrHeadTextHot = m_groupSpecial.clrHeadTextNormal;</DIV><DIV>&nbsp;CreateGripperBitmaps();<BR>&nbsp;<BR>}</DIV><DIV>&nbsp;</DIV><DIV>At least this code works with TaskPanel sample...</DIV><DIV>&nbsp;</DIV><DIV>You never call base RefreshMetrics so caption font was not created...</DIV>]]>
   </description>
   <pubDate>Fri, 28 Jul 2006 12:48:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14444&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14444</guid>
  </item> 
  <item>
   <title><![CDATA[Exception in TaskPanel custom theme (XTP 10.2) : As to your other 2 questions: I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14436&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1245">VioletRose</a><br /><strong>Subject:</strong> 4674<br /><strong>Posted:</strong> 28 July 2006 at 5:13am<br /><br /><P>As to your other 2 questions:</P><DIV>I didn't try using this in your application.</DIV><DIV>If I remove the call then I don't get exception, but the application looks bad (obviously).</DIV><DIV>&nbsp;</DIV><DIV>Irit.</DIV>]]>
   </description>
   <pubDate>Fri, 28 Jul 2006 05:13:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14436&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14436</guid>
  </item> 
  <item>
   <title><![CDATA[Exception in TaskPanel custom theme (XTP 10.2) :  This is the code (2 function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14435&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14435</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1245">VioletRose</a><br /><strong>Subject:</strong> 4674<br /><strong>Posted:</strong> 28 July 2006 at 5:11am<br /><br /><DIV></DIV><FONT color=#0000c0><DIV>This is the code (2 functions):</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>CCustomTaskPanelTheme</FONT>::<FONT color=#0000c0>CCustomTaskPanelTheme</FONT>()</DIV><DIV>{</DIV><P><FONT color=#000080>m_bExplorerTheme</FONT> = <FONT color=#0000ff>true</FONT>;</P><P><FONT color=#000080>m_bBoldCaption</FONT> = <FONT color=#0000ff>false</FONT>;</P><P><FONT color=#000080>m_bOfficeBorder</FONT> = <FONT color=#0000ff>true</FONT>;</P><P><FONT color=#000080>m_clrBackground</FONT>.<FONT color=#880000>SetCustomValue</FONT>(<FONT color=#800080><FONT color=#800080>RGB</FONT><FONT color=#000000>(255,255,255)</FONT></FONT>, <FONT color=#800080><FONT color=#800080>RGB</FONT><FONT color=#000000>(255,255,255)</FONT></FONT>;</P><P><FONT color=#000080>m_bLeftRoundedCorner</FONT> = <FONT color=#0000ff>true</FONT>;</P><P><FONT color=#000080>m_bOfficeHighlight</FONT> = <FONT color=#0000ff>true</FONT>;</P><P><FONT color=#000080>m_groupNormal</FONT>.<FONT color=#000080>clrClient</FONT>.<FONT color=#880000>SetStandardValue</FONT>(<FONT color=#800080><FONT color=#800080>RGB</FONT><FONT color=#000000>(243, 243, 243)</FONT></FONT>);</P><P><FONT color=#000080>m_groupNormal</FONT>.<FONT color=#000080>clrHead</FONT>.<FONT color=#880000>SetStandardValue</FONT>(<FONT color=#000000>RGB(224, 223, 227)</FONT>);</P><P><FONT color=#000080>m_groupSpecial</FONT>.<FONT color=#000080>clrClient</FONT>.<FONT color=#880000>SetStandardValue</FONT>(<FONT color=#800080>RGB<FONT color=#000000>(243, 243, 243)</FONT></FONT>);</P><P><FONT color=#000080>m_groupSpecial</FONT>.<FONT color=#000080>clrHead</FONT>.<FONT color=#880000>SetCustomValue</FONT>(<FONT color=#800080><FONT color=#800080>RGB</FONT><FONT color=#000000>(0, 44, 151)</FONT></FONT>, <FONT color=#800080><FONT color=#800080>RGB</FONT><FONT color=#000000>(196, 218, 50)</FONT></FONT>);</P><P><FONT color=#000080>m_groupSpecial</FONT>.<FONT color=#000080>clrHeadTextHot</FONT> = <FONT color=#000080>m_groupSpecial</FONT>.<FONT color=#000080>clrHeadTextNormal</FONT>;</P><P><FONT color=#880000>RefreshMetrics</FONT>();</P><P>}</P><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff><P>void</FONT> <FONT color=#0000c0>CCustomTaskPanelTheme</FONT>::<FONT color=#880000>RefreshMetrics</FONT>()</P><P>{</P><P><FONT color=#880000>CreateGripperBitmaps</FONT>();</P><P>}</P><DIV></DIV></DIV>]]>
   </description>
   <pubDate>Fri, 28 Jul 2006 05:11:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14435&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14435</guid>
  </item> 
  <item>
   <title><![CDATA[Exception in TaskPanel custom theme (XTP 10.2) : Hello,  what inside CCustomTaskPanelTheme?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14431&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14431</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4674<br /><strong>Posted:</strong> 27 July 2006 at 6:41pm<br /><br />Hello, <DIV>what inside CCustomTaskPanelTheme? </DIV><DIV>if you use it in our sample do you see same problme? if you don't use it in your application do you see it? </DIV>]]>
   </description>
   <pubDate>Thu, 27 Jul 2006 18:41:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14431&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14431</guid>
  </item> 
  <item>
   <title><![CDATA[Exception in TaskPanel custom theme (XTP 10.2) : I&amp;#039;veupgraded my applicationfrom...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14427&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14427</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1245">VioletRose</a><br /><strong>Subject:</strong> 4674<br /><strong>Posted:</strong> 27 July 2006 at 2:40pm<br /><br />I've&nbsp;upgraded my application&nbsp;from XTP 9.60 to 10.20 (XTP 2006 Q2) and now&nbsp;it gets an exception because&nbsp;of the following code (which used to work fine):<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><FONT color=#008000>SetTheme(xtpTaskPanelThemeCustom);</FONT></DIV><DIV><FONT color=#008000>SetCustomTheme(new CCustomTaskPanelTheme));</FONT></DIV></BLOCKQUOTE><DIV dir=ltr><FONT color=#008000><FONT color=#000000>Where&nbsp;<FONT color=#008000>CCustomTaskPanelTheme</FONT> is derived from <FONT color=#0000c0>CXTPTaskPanelExplorerTheme</FONT></FONT></FONT></DIV><DIV dir=ltr><FONT color=#008000><FONT color=#000000></FONT></FONT>&nbsp;</DIV><DIV dir=ltr><FONT color=#008000><FONT color=#000000>The exception is in file XTPTaskPanelPaintManager.cpp (1157):</FONT></FONT></DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV dir=ltr><FONT color=#008000><P><FONT color=#0000ff>int</FONT> <FONT color=#000080>nAlpha</FONT> = <FONT color=#000080>pGroup</FONT>-&gt;<FONT color=#880000>IsExpanding</FONT>() ? (255 * <FONT color=#000080>rc</FONT>.<FONT color=#880000>Height</FONT>()) / <FONT color=#000080>pGroup</FONT>-&gt;<FONT color=#880000>GetExpandedClientHeight</FONT>() : 255;</P></DIV></BLOCKQUOTE><DIV dir=ltr><DIV dir=ltr><FONT color=#008000><FONT color=#000000>I'll appreciate any help.</FONT></FONT></DIV><DIV dir=ltr><FONT color=#000000></FONT>&nbsp;</DIV><DIV dir=ltr><FONT color=#000000>Irit.</FONT></DIV></DIV></FONT>]]>
   </description>
   <pubDate>Thu, 27 Jul 2006 14:40:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4674&amp;PID=14427&amp;title=exception-in-taskpanel-custom-theme-xtp-10-2#14427</guid>
  </item> 
 </channel>
</rss>