<?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 : Tip: Always show selection</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Tip: Always show selection]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 05 Jun 2026 06:41:46 +0000</pubDate>
  <lastBuildDate>Fri, 04 Jul 2008 01:03: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=11285</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[Tip: Always show selection : Nope, it doesn&amp;#039;t work. In...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37803&amp;title=tip-always-show-selection#37803</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 11285<br /><strong>Posted:</strong> 04 July 2008 at 1:03am<br /><br /><P>Nope, it doesn't work. In fact,&nbsp;m_bHideSelection does the exact opposite:</P><DIV>if (GetControl()-&gt;HasFocus())<BR>{<BR>&nbsp;&nbsp; pItemMetrics-&gt;clrForeground = pPaintManager-&gt;m_clrHighlightText;<BR>&nbsp;&nbsp; pItemMetrics-&gt;clrBackground = pPaintManager-&gt;m_clrHighlight;<BR>}<BR>else if (!pPaintManager-&gt;m_bHideSelection)<BR>{<BR>&nbsp;&nbsp; <img src="http://forum.codejock.com/smileys/smiley36.gif" border="0"></DIV><DIV>&nbsp; &nbsp;pItemMetrics-&gt;clrForeground = pPaintManager-&gt;m_clrSelectedRowText;<BR>&nbsp;&nbsp; pItemMetrics-&gt;clrBackground = pPaintManager-&gt;m_clrSelectedRow;<BR>}</DIV><DIV>&nbsp;</DIV><DIV>The correct solution is quite obvious:</DIV><DIV><strong>if (!pPaintManager-&gt;m_bHideSelection || GetControl()-&gt;HasFocus())<BR></strong>{<BR>&nbsp;&nbsp; pItemMetrics-&gt;clrForeground = pPaintManager-&gt;m_clrHighlightText;<BR>&nbsp;&nbsp; pItemMetrics-&gt;clrBackground = pPaintManager-&gt;m_clrHighlight;<BR>}<BR></DIV>]]>
   </description>
   <pubDate>Fri, 04 Jul 2008 01:03:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37803&amp;title=tip-always-show-selection#37803</guid>
  </item> 
  <item>
   <title><![CDATA[Tip: Always show selection : Also we added the above 2 properties...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37777&amp;title=tip-always-show-selection#37777</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 11285<br /><strong>Posted:</strong> 03 July 2008 at 9:43am<br /><br />Also we added the above 2 properties for this exact purpose.<br><br>From COM help file: <br><br>"Can be useful when the report loses focus and you do not want the color of the focused row to change."]]>
   </description>
   <pubDate>Thu, 03 Jul 2008 09:43:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37777&amp;title=tip-always-show-selection#37777</guid>
  </item> 
  <item>
   <title><![CDATA[Tip: Always show selection :  Is this what you are talking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37775&amp;title=tip-always-show-selection#37775</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 11285<br /><strong>Posted:</strong> 03 July 2008 at 9:34am<br /><br />Is this what you are talking about?<br><br>GetTargetReport()-&gt;GetPaintManager()-&gt;m_bHideSelection = FALSE;<br>]]>
   </description>
   <pubDate>Thu, 03 Jul 2008 09:34:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37775&amp;title=tip-always-show-selection#37775</guid>
  </item> 
  <item>
   <title><![CDATA[Tip: Always show selection :   znakeeye wrote:I know many...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37742&amp;title=tip-always-show-selection#37742</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3565">jshan</a><br /><strong>Subject:</strong> 11285<br /><strong>Posted:</strong> 02 July 2008 at 10:00pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by znakeeye" alt="Originally posted by znakeeye" style="vertical-align: text-bottom;" /> <strong>znakeeye wrote:</strong><br /><br />I know many of us want the selection to be visible even when the report control loses focus. It turns out this is quite tricky to accomplish, but I found a quite simple solution: <DIV>&nbsp;</DIV><DIV>Derive a custom class from CXTPReportPaintManager and override RefreshMetrics:</DIV><DIV>&nbsp;</DIV>virtual void RefreshMetrics()<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp; CXTPReportPaintManager::RefreshMetrics();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <DIV>&nbsp;&nbsp;&nbsp;&nbsp; m_clrSelectedRowText = m_clrHighlightText;<BR>&nbsp;&nbsp;&nbsp;&nbsp; m_clrSelectedRow = m_clrHighlight;<BR>}</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>good tip.</DIV><DIV>thanks znakeeye !</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 02 Jul 2008 22:00:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37742&amp;title=tip-always-show-selection#37742</guid>
  </item> 
  <item>
   <title><![CDATA[Tip: Always show selection : I know many of us want the selection...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37740&amp;title=tip-always-show-selection#37740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 11285<br /><strong>Posted:</strong> 02 July 2008 at 6:39pm<br /><br />I know many of us want the selection to be visible even when the report control loses focus. It turns out this is quite tricky to accomplish, but I found a quite simple solution:<DIV>&nbsp;</DIV><DIV>Derive a custom class from CXTPReportPaintManager and override RefreshMetrics:</DIV><DIV>&nbsp;</DIV>virtual void RefreshMetrics()<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp; CXTPReportPaintManager::RefreshMetrics();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<DIV>&nbsp;&nbsp;&nbsp;&nbsp; m_clrSelectedRowText = m_clrHighlightText;<BR>&nbsp;&nbsp;&nbsp;&nbsp; m_clrSelectedRow = m_clrHighlight;<BR>}</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 02 Jul 2008 18:39:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11285&amp;PID=37740&amp;title=tip-always-show-selection#37740</guid>
  </item> 
 </channel>
</rss>