<?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 : SetBold-Property in CXTPReportRecordItemPreview</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : SetBold-Property in CXTPReportRecordItemPreview]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 02:09:34 +0000</pubDate>
  <lastBuildDate>Wed, 11 Aug 2010 02:53:38 +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=17028</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[SetBold-Property in CXTPReportRecordItemPreview : Is this an issue for the next...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17028&amp;PID=59729&amp;title=setboldproperty-in-cxtpreportrecorditempreview#59729</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3301">Michl</a><br /><strong>Subject:</strong> 17028<br /><strong>Posted:</strong> 11 August 2010 at 2:53am<br /><br />Is this an issue for the next release?]]>
   </description>
   <pubDate>Wed, 11 Aug 2010 02:53:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17028&amp;PID=59729&amp;title=setboldproperty-in-cxtpreportrecorditempreview#59729</guid>
  </item> 
  <item>
   <title><![CDATA[SetBold-Property in CXTPReportRecordItemPreview :  Hi codejock developers!If I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17028&amp;PID=59530&amp;title=setboldproperty-in-cxtpreportrecorditempreview#59530</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3301">Michl</a><br /><strong>Subject:</strong> 17028<br /><strong>Posted:</strong> 29 July 2010 at 7:36am<br /><br />Hi codejock developers!<br><br>If I use (set) this property, nothing happens. Any text in preview is still displayed in regluar style.<br><br>I saw, this property is derived from CXTPReportRecordItem. This class take notice the flag (see code)<br><table width="99%"><tr><td><pre class="BBcode"><br>void CXTPReportRecordItem::GetItemMetrics(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics)<br>{<br>&nbsp;&nbsp;&nbsp; if (m_clrBackground != XTP_REPORT_COLOR_DEFAULT)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemMetrics-&gt;clrBackground = m_clrBackground;<br><br>&nbsp;&nbsp;&nbsp; if (m_clrText != XTP_REPORT_COLOR_DEFAULT)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemMetrics-&gt;clrForeground = m_clrText;<br><br>&nbsp;&nbsp;&nbsp; if (m_pFontCaption != NULL)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemMetrics-&gt;pFont = m_pFontCaption;<br>&nbsp;&nbsp;&nbsp; else if (<font color="#ff0000">m_bBoldText</font>)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemMetrics-&gt;pFont = &amp;pDrawArgs-&gt;pControl-&gt;GetPaintManager()-&gt;<font color="#ff0000">m_fontBoldText</font>;<br><br>&nbsp;&nbsp;&nbsp; if (m_Alignment != (XTPReportColumnIconAlignment)(-1))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemMetrics-&gt;nColumnAlignment = m_Alignment;<br>}<br></pre></td></tr></table><br><br><br>But class CXTPReportRecordItemPreview only take a default font.<br><br><br><table width="99%"><tr><td><pre class="BBcode"><br>void CXTPReportRecordItemPreview::GetItemMetrics(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics)<br>{<br>&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;clrForeground = pDrawArgs-&gt;pControl-&gt;GetPaintManager()-&gt;m_clrPreviewText;<br>&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;pFont = &amp;pDrawArgs-&gt;pControl-&gt;GetPaintManager()-&gt;<font color="#ff0000">m_fontPreview</font>;<br>}<br></pre></td></tr></table><br><br>Should this method not implemented as following (or similar)?<br><br><table width="99%"><tr><td><pre class="BBcode"><br>void CXTPReportRecordItemPreview::GetItemMetrics(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics)<br>{<br>&nbsp;&nbsp;&nbsp; __super::GetItemMetrics( pDrawArgs, pItemMetrics );<br><br>&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;clrForeground = pDrawArgs-&gt;pControl-&gt;GetPaintManager()-&gt;m_clrPreviewText;<br>&nbsp;&nbsp;&nbsp; if (!<font color="#ff0000">m_bBoldText</font>)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemMetrics-&gt;pFont = &amp;pDrawArgs-&gt;pControl-&gt;GetPaintManager()-&gt;<font color="#ff0000">m_fontPreview</font>;<br>}<br></pre></td></tr></table><br><br>I'm interesting for your response!<br><br>Michael<br>]]>
   </description>
   <pubDate>Thu, 29 Jul 2010 07:36:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17028&amp;PID=59530&amp;title=setboldproperty-in-cxtpreportrecorditempreview#59530</guid>
  </item> 
 </channel>
</rss>