<?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 : Highlighting SubItems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Highlighting SubItems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 06:44:52 +0000</pubDate>
  <lastBuildDate>Sat, 09 May 2009 15:03:54 +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=14255</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[Highlighting SubItems : Hi Jason,  You would expect...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48827&amp;title=highlighting-subitems#48827</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14255<br /><strong>Posted:</strong> 09 May 2009 at 3:03pm<br /><br />Hi Jason,<DIV>&nbsp;</DIV><DIV>You would expect that all items would be painted same color, but I think after BeforeDrawRow event, the RC repaints the selected row...&nbsp;Same way as you would display a MsgBox, the selected row becomes grayed and after the ReportControl has focus again the selected row will be blue again.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Well it works, that's important <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 09 May 2009 15:03:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48827&amp;title=highlighting-subitems#48827</guid>
  </item> 
  <item>
   <title><![CDATA[Highlighting SubItems : @jpbro: Your example screenshot...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48826&amp;title=highlighting-subitems#48826</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5135">keepITcool</a><br /><strong>Subject:</strong> 14255<br /><strong>Posted:</strong> 09 May 2009 at 2:27pm<br /><br />@jpbro:&nbsp; Your example &nbsp;screenshot it exactly what i meant. nice and short too... <DIV>thx!</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 09 May 2009 14:27:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48826&amp;title=highlighting-subitems#48826</guid>
  </item> 
  <item>
   <title><![CDATA[Highlighting SubItems : If I understand correctly, I think...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48823&amp;title=highlighting-subitems#48823</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14255<br /><strong>Posted:</strong> 09 May 2009 at 10:13am<br /><br />If I understand correctly, I think you want the inverse of thesituation that Aaron describes (e.g. the item/cell will be blue and therest of the row will be white). I don't think there is a property forthis (although InvertHighlight might be a useful PaintManagerproperty). <br><br>I have found a bit of a hack to get the desired results using theBeforeDrawRow event. Basically, you store the highligh colors atstartup and the set them the the non-highlight background &amp;foreground colors. Then, in the BeforeDrawRow event, you can set theMetrics Backcolor and Forecolor properties to the highlighted colorsthat you stored earlier. Here's a sample:<br><br><br><a href="uploads/20090509_101007_RcHighlightCell.zip" target="_blank">uploads/20090509_101007_RcHighlightCell.zip</a><br><br>I'm not 100% sure why the code works though, as I would have expected changing the Metrics backcolor to set the backcolor for the whole row (as it does if you change the Font.Bold property for example), but it does seem to only set the currently selected item/cell colors. Screenshot:<br><br><img src="uploads/20090509_101234_RcHighlightCell.jpg" height="284" width="434" border="0"><br><br><br>If this is not what you require, perhaps you could post a mockup of what you want the RC to look like?<br>]]>
   </description>
   <pubDate>Sat, 09 May 2009 10:13:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48823&amp;title=highlighting-subitems#48823</guid>
  </item> 
  <item>
   <title><![CDATA[Highlighting SubItems : Hi,  You need:   wndReportControl.FocusSubItems...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48822&amp;title=highlighting-subitems#48822</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14255<br /><strong>Posted:</strong> 09 May 2009 at 9:36am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You need:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; wndReportControl.FocusSubItems = True<BR>&nbsp;&nbsp;&nbsp; wndReportControl.SelectionEnable = True</DIV><DIV>&nbsp;</DIV><DIV>it will select entire row (<strong>blue</strong>) and the item you click will stay <strong>white</strong>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 09 May 2009 09:36:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48822&amp;title=highlighting-subitems#48822</guid>
  </item> 
  <item>
   <title><![CDATA[Highlighting SubItems :  I use 2 reports: 1st reportallows...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48820&amp;title=highlighting-subitems#48820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5135">keepITcool</a><br /><strong>Subject:</strong> 14255<br /><strong>Posted:</strong> 09 May 2009 at 7:48am<br /><br /><DIV>&nbsp;</DIV><DIV>I use 2 reports: 1st report&nbsp;allows focusing on (single) subitems... then the 2nd report shows the details of the item selected in the 1st.</DIV><DIV>&nbsp;</DIV><DIV>I need to focus the user's attention on the ITEM not on the ROW (plus&nbsp;I need same&nbsp;coloring when the 1st control has no focus)</DIV><DIV>&nbsp;</DIV><DIV>However I can't find the setting for this in the&nbsp;paintmanager, which is limited to highlighting ROWS and doesn't bother with items.</DIV><DIV>(other than NOT highlighting the item, and highlighting the ROW, which is exactly the opposite of what I need (and expect!)</DIV><DIV>&nbsp;</DIV><DIV>Do I need to resort to one of the event handlers&nbsp;and&nbsp;implement this all by my lonely self, of did I overlook the obvious?</DIV><DIV>&nbsp;</DIV><DIV>Any ideas?</DIV>]]>
   </description>
   <pubDate>Sat, 09 May 2009 07:48:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14255&amp;PID=48820&amp;title=highlighting-subitems#48820</guid>
  </item> 
 </channel>
</rss>