<?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 : Always show selection</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Always show selection]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 06:05:36 +0000</pubDate>
  <lastBuildDate>Mon, 26 Nov 2012 04:39:53 +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=20321</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[Always show selection : I found a way to do this.  In...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20321&amp;PID=69282&amp;title=always-show-selection#69282</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7733">Lipi</a><br /><strong>Subject:</strong> 20321<br /><strong>Posted:</strong> 26 November 2012 at 4:39am<br /><br />I found a way to do this.<br /><br />In my CustomRecord class derived from CXTPReportRecord, i redefine GetItemMetrics() :<br />void CustomRecord::GetItemMetrics( XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics )<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(pDrawArgs-&gt;pRow-&gt;IsSelected())// to highlight selected row even if the control hasnt the focus<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPReportPaintManager *pPaintManager = pDrawArgs-&gt;pControl-&gt;GetPaintManager();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pItemMetrics-&gt;clrForeground = pPaintManager-&gt;m_clrHighlightText;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pItemMetrics-&gt;clrBackground = pPaintManager-&gt;m_clrHighlight;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ((pDrawArgs-&gt;pRow-&gt;GetIndex() % 2) && !pDrawArgs-&gt;pItem-&gt;IsPreviewItem())//one row on two will be a little bit grey<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pItemMetrics-&gt;clrBackground = RGB(240, 240, 240);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br />and i set the "m_bHideSelection" of the paintManager of the ReportControl to TRUE in the init() of my view<br />m_report_elements.GetPaintManager()-&gt;m_bHideSelection = TRUE;]]>
   </description>
   <pubDate>Mon, 26 Nov 2012 04:39:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20321&amp;PID=69282&amp;title=always-show-selection#69282</guid>
  </item> 
  <item>
   <title><![CDATA[Always show selection : Hi,  Is there a way to always...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20321&amp;PID=69271&amp;title=always-show-selection#69271</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7733">Lipi</a><br /><strong>Subject:</strong> 20321<br /><strong>Posted:</strong> 23 November 2012 at 8:51am<br /><br />Hi,<br /><br />Is there a way to always show the current selection in the CXTPReportControl even if the report has not the focus?<br /><br />(as CTreeCtrl does with flag TVS_SHOWSELALWAYS)]]>
   </description>
   <pubDate>Fri, 23 Nov 2012 08:51:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20321&amp;PID=69271&amp;title=always-show-selection#69271</guid>
  </item> 
 </channel>
</rss>