<?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 : GetItemMetrics of the CXTPReportRow is NOT virtual</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : GetItemMetrics of the CXTPReportRow is NOT virtual]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 01:24:31 +0000</pubDate>
  <lastBuildDate>Tue, 05 Sep 2006 15:05: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=4967</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[GetItemMetrics of the CXTPReportRow is NOT virtual : Hi,You can make CXTPReportRow::GetItemMetrics()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4967&amp;PID=15468&amp;title=getitemmetrics-of-the-cxtpreportrow-is-not-virtual#15468</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4967<br /><strong>Posted:</strong> 05 September 2006 at 3:05pm<br /><br />Hi,<br><br>You can make CXTPReportRow::GetItemMetrics() as virtual in your toolkit sources and rebuild it. This change will be included in the next release.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Tue, 05 Sep 2006 15:05:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4967&amp;PID=15468&amp;title=getitemmetrics-of-the-cxtpreportrow-is-not-virtual#15468</guid>
  </item> 
  <item>
   <title><![CDATA[GetItemMetrics of the CXTPReportRow is NOT virtual : I wanted to customize my control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4967&amp;PID=15453&amp;title=getitemmetrics-of-the-cxtpreportrow-is-not-virtual#15453</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2036">Kukis</a><br /><strong>Subject:</strong> 4967<br /><strong>Posted:</strong> 05 September 2006 at 5:06am<br /><br />I wanted to customize my control and noticed that CXTPReportRow class has not virtual GetItemMetrics method. <DIV>Original GetITemMetrics method has lines which overwrite my custom color settings. </DIV><DIV>.....</DIV><DIV><P><B><FONT color=#000080><FONT face="Arial, Helvetica, sans-serif" size=1>if</FONT></B></FONT><FONT face="Arial, Helvetica, sans-serif" size=1> (GetControl()-&gt;HasFocus())</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>{</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>pItemMetrics-&gt;clrForeground = pPaintManager-&gt;m_clrHighlightText;</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>pItemMetrics-&gt;clrBackground = pPaintManager-&gt;m_clrHighlight;</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>}</FONT></P><P><B><FONT color=#000080><FONT face="Arial, Helvetica, sans-serif" size=1>else</FONT></B></FONT><FONT size=1><FONT face="Arial, Helvetica, sans-serif"> <B><FONT color=#000080>if</B></FONT></FONT></FONT><FONT face="Arial, Helvetica, sans-serif" size=1> (!pPaintManager-&gt;m_bHideSelection)</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>{</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>pItemMetrics-&gt;clrForeground = pPaintManager-&gt;m_clrBtnText;</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>pItemMetrics-&gt;clrBackground = pPaintManager-&gt;m_clrBtnFace;</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>}</FONT></P><FONT size=2>....</FONT></DIV><DIV><FONT size=2><FONT face="Times New Roman, Times, serif">I wanted to to remove lines which set text color and made my own row class. But because GetItemMetrics is not virtual my code is never called&nbsp;(only at&nbsp;that moment I've noticed&nbsp;that it is not virtual)</FONT></FONT></DIV><DIV><FONT size=2><FONT face="Times New Roman"></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT face="Times New Roman">Could you give my some ideas how to overcome this problem (leave text color of the selected item lets say green)? Change library code? overwrite ondrawcaption of the reportrecorditem?</FONT></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 05 Sep 2006 05:06:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4967&amp;PID=15453&amp;title=getitemmetrics-of-the-cxtpreportrow-is-not-virtual#15453</guid>
  </item> 
 </channel>
</rss>