<?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 : Possible BUG in CXTPReportRow::GetItemMetrics</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Possible BUG in CXTPReportRow::GetItemMetrics]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 18:38:49 +0000</pubDate>
  <lastBuildDate>Wed, 16 Sep 2009 17:58:16 +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=15192</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[Possible BUG in CXTPReportRow::GetItemMetrics : I&amp;#039;ll try it and will reply...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15192&amp;PID=53130&amp;title=possible-bug-in-cxtpreportrowgetitemmetrics#53130</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 15192<br /><strong>Posted:</strong> 16 September 2009 at 5:58pm<br /><br />I'll try it and will reply tomorrow!<br>]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 17:58:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15192&amp;PID=53130&amp;title=possible-bug-in-cxtpreportrowgetitemmetrics#53130</guid>
  </item> 
  <item>
   <title><![CDATA[Possible BUG in CXTPReportRow::GetItemMetrics : What&amp;#039;s happened if you comment...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15192&amp;PID=53126&amp;title=possible-bug-in-cxtpreportrowgetitemmetrics#53126</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15192<br /><strong>Posted:</strong> 16 September 2009 at 5:01pm<br /><br />What's happened if you comment this (red) line?]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 17:01:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15192&amp;PID=53126&amp;title=possible-bug-in-cxtpreportrowgetitemmetrics#53126</guid>
  </item> 
  <item>
   <title><![CDATA[Possible BUG in CXTPReportRow::GetItemMetrics : Hi;I used to dynamically set icon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15192&amp;PID=53119&amp;title=possible-bug-in-cxtpreportrowgetitemmetrics#53119</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 15192<br /><strong>Posted:</strong> 16 September 2009 at 4:05pm<br /><br />Hi;<br><br>I used to dynamically set icon alignment in report rows by providing it in my own CXTPReportRecord derived GetItemMetrics() function but I never got it to work. After a few minutes of debugging I found this in CXTPReportRow::GetItemMetrics<br><table width="99%"><tr><td><pre class="BBcode">void CXTPReportRow::GetItemMetrics(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics)<br>{<br>&nbsp;&nbsp;&nbsp; ASSERT(m_pRecord);<br>&nbsp;&nbsp;&nbsp; ASSERT(pDrawArgs-&gt;pRow == this);<br>&nbsp;&nbsp;&nbsp; ASSERT(pDrawArgs-&gt;pItem != NULL);<br>&nbsp;&nbsp;&nbsp; if (!m_pRecord || !pDrawArgs-&gt;pItem)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp; CXTPReportPaintManager* pPaintManager = pDrawArgs-&gt;pControl-&gt;GetPaintManager();<br><br>&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;pFont = &amp;pPaintManager-&gt;m_fontText;<br>&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;clrForeground = pPaintManager-&gt;m_clrWindowText;<br>&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;clrBackground = XTP_REPORT_COLOR_DEFAULT;<br>&nbsp;&nbsp;&nbsp;<b><font color="#0000ff"> pItemMetrics-&gt;nColumnAlignment = pDrawArgs-&gt;nTextAlign;</font></b><br>&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;nItemIcon = XTP_REPORT_NOICON;<br><br>&nbsp;&nbsp;&nbsp; m_pRecord-&gt;GetItemMetrics(pDrawArgs, pItemMetrics);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;-- Here I set my own alignment...<br>&nbsp;&nbsp;&nbsp; pDrawArgs-&gt;pItem-&gt;GetItemMetrics(pDrawArgs, pItemMetrics);<br><br>&nbsp;&nbsp;&nbsp; m_pControl-&gt;GetItemMetrics(pDrawArgs, pItemMetrics);<br>&nbsp;&nbsp;&nbsp;<font color="#990000"><b> pDrawArgs-&gt;nTextAlign = pItemMetrics-&gt;nColumnAlignment;&nbsp;&nbsp; &lt;-- ... and here everything is reset!</b></font><br>&nbsp;&nbsp; ...</pre></td></tr></table><br><br>So, settings applied in my CXTPReportRecord derived class' GetItemMetrics are alwys overwritten!<br>]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 16:05:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15192&amp;PID=53119&amp;title=possible-bug-in-cxtpreportrowgetitemmetrics#53119</guid>
  </item> 
 </channel>
</rss>