<?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 : Report Control Selection Color</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Report Control Selection Color]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 03:29:18 +0000</pubDate>
  <lastBuildDate>Thu, 26 Aug 2010 05:14:11 +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=16622</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[Report Control Selection Color :  Just tried this sample, can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=59917&amp;title=report-control-selection-color#59917</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6296">Hemesh</a><br /><strong>Subject:</strong> 16622<br /><strong>Posted:</strong> 26 August 2010 at 5:14am<br /><br />Just tried this sample, can't get the text to show in the first column now, and the selection highlight still appears. Need to play around with this to get an outline working maybe.<br><br>Think CJ need a feature to have different selection modes like xtpSold and xtpOutline!<br><br>EDIT: Got the outline I wanted by setting SelectionEnable = False and ShowRowFocus = true and not bothering with customdrawing!<br>]]>
   </description>
   <pubDate>Thu, 26 Aug 2010 05:14:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=59917&amp;title=report-control-selection-color#59917</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control Selection Color : Once more again:  If the selectionbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58214&amp;title=report-control-selection-color#58214</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 16622<br /><strong>Posted:</strong> 26 April 2010 at 3:57pm<br /><br />Once more again: <DIV>If the selectionbar is enabled (SelectionEnable = True) you have to draw the cells by yourself.</DIV><DIV>You can use the Windows-Function SetBkColor, SetTextColor and ExtTextOut or DrawText to draw each cell as you want.</DIV><DIV>In the DrawItem-Event you get all you need.</DIV><DIV>For examlpe:</DIV><DIV>&nbsp;</DIV><DIV>Public Type cRect<BR>&nbsp; left As Long<BR>&nbsp; top As Long<BR>&nbsp; right As Long<BR>&nbsp; bottom As Long<BR>End Type</DIV><DIV>&nbsp;</DIV><DIV>Public Declare Function SetBkColor Lib "gdi32" (ByVal hDC As Long, ByVal crColor As Long) As Long<BR>Public Declare Function SetTextColor Lib "gdi32" (ByVal hDC As Long, ByVal crColor As Long) As Long<BR>Public Declare Function ExtTextOut Lib "gdi32" Alias "ExtTextOutA" (ByVal hDC As Long, ByVal x As Long, ByVal y As Long, ByVal wOptions As Long, lpRect As cRect, ByVal lpString As String, ByVal nCount As Long, lpDx As Long) As Long<BR></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Private Sub repReport_DrawItem(ByVal Row As XtremeReportControl.IReportRow, ByVal Column As XtremeReportControl.IReportColumn, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal hDC As stdole.OLE_HANDLE, ByVal left As Long, ByVal top As Long, ByVal right As Long, ByVal bottom As Long, DoDefault As Boolean)<BR></DIV><DIV>&nbsp;&nbsp; Dim xTextRect As cRect<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp; xTextRect.left = left + 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Text<BR>&nbsp;&nbsp; xTextRect.right = right - 2<BR>&nbsp;&nbsp; xTextRect.top = top + 1<BR>&nbsp;&nbsp; xTextRect.bottom = bottom - 2<BR></DIV><DIV>&nbsp;&nbsp; SetBkColor hDC, Item.Backcolor</DIV><DIV>&nbsp;&nbsp; SetTextColor hDC, Item.ForeColor<BR>&nbsp;&nbsp; ExtTextOut hDC, 0, 0, ETO_OPAQUE, xTextRect, Item.Caption, -1, 0</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; DoDefault = False<BR></DIV><DIV>end sub</DIV>]]>
   </description>
   <pubDate>Mon, 26 Apr 2010 15:57:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58214&amp;title=report-control-selection-color#58214</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control Selection Color : I&amp;#039;m also looking for a way...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58213&amp;title=report-control-selection-color#58213</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=729">tobi</a><br /><strong>Subject:</strong> 16622<br /><strong>Posted:</strong> 26 April 2010 at 3:41pm<br /><br />I'm also looking for a way to make the blue selection bar ( without SelectionEnable = False ) some kind of transparent to see colored cells also when they are selected ...<br>]]>
   </description>
   <pubDate>Mon, 26 Apr 2010 15:41:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58213&amp;title=report-control-selection-color#58213</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control Selection Color : Hi,  If you set wndReportControl.SelectionEnable...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58210&amp;title=report-control-selection-color#58210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 16622<br /><strong>Posted:</strong> 26 April 2010 at 2:04pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>If you set wndReportControl.<strong>SelectionEnable</strong> = <strong>False</strong> you are still able to see which row has been selected (dotted rectangle) and you are able to select a color for an item in BeforeDrawRow event (the code you already have)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 26 Apr 2010 14:04:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58210&amp;title=report-control-selection-color#58210</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control Selection Color : This doesn&amp;#039;t help in BeforeDrawRow,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58209&amp;title=report-control-selection-color#58209</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 16622<br /><strong>Posted:</strong> 26 April 2010 at 1:17pm<br /><br />This doesn't help in BeforeDrawRow, because the selected row will be drawn with the selection colors.<DIV>You have to draw the entire row by yourself with windows-gdi-functions.</DIV><DIV>&nbsp;</DIV><DIV>You need the flag xtpCustomDrawItem!</DIV><DIV>Than, in the DrawItem-Event you can decide, what to do.</DIV><DIV>&nbsp;</DIV><DIV>It's too heavy to explain here how to use GDI-Functions to the given hDC.</DIV>]]>
   </description>
   <pubDate>Mon, 26 Apr 2010 13:17:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58209&amp;title=report-control-selection-color#58209</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control Selection Color : Hi Baldur, Good Day!Thank you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58198&amp;title=report-control-selection-color#58198</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 16622<br /><strong>Posted:</strong> 25 April 2010 at 8:29pm<br /><br />Hi Baldur, Good Day!<br><br>Thank you for your reply. I had set the backcolor=vbred when an item is less&nbsp; than zero or have a negative value. Then my problem is when the user select the row, the backcolor=vbred which i set earlier had been replace by the highlighted color. all i need is to retain the vbred backcolor to emphasize to user that the selected/highlighted row had contain a negative value. Please refer my code below on how i set an item to vbred. Please i need help on this.<br><br><br>Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)<br>&nbsp;&nbsp;&nbsp; If Item.Index &gt;= 1 Then Metrics.ColumnAlignment = xtpAlignmentIconRight Or xtpAlignmentRight<br>&nbsp;&nbsp;&nbsp; If Left$(Item.Value, 1) = "-" Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.BackColor = 12632319<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.Font.Bold = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.ForeColor = vbRed<br>&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; If Row.Selected Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Metrics.BackColor &lt;&gt; 12632319 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.BackColor = m_HighlightBackcolor<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Metrics.BackColor = 12632319<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br><br>Any suggestion or comment would be greatly appreciated.<br><br>Thank you!<br><br>]]>
   </description>
   <pubDate>Sun, 25 Apr 2010 20:29:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58198&amp;title=report-control-selection-color#58198</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control Selection Color : What do you realy mean? Ich you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58183&amp;title=report-control-selection-color#58183</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 16622<br /><strong>Posted:</strong> 24 April 2010 at 9:45am<br /><br />What do you realy mean?<DIV>Ich you set the for- and backcolor for an individual item, these colors are reused if an other row is selected.</DIV><DIV>The selectioncolors are defined in the paintmanager of the reportcontrol.</DIV><DIV>&nbsp;</DIV><DIV>If you don't want to use the selection-colors, you must use ownerdraw and you have to draw each item by yourself.</DIV><DIV>In this case you overwrite the selectioncolors.</DIV><DIV>&nbsp;</DIV><DIV>But the problem may be, that the user can't see any mor, which row is currently selected.</DIV>]]>
   </description>
   <pubDate>Sat, 24 Apr 2010 09:45:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58183&amp;title=report-control-selection-color#58183</guid>
  </item> 
  <item>
   <title><![CDATA[Report Control Selection Color : Hi Everyone!i still can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58170&amp;title=report-control-selection-color#58170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5940">JamGodz</a><br /><strong>Subject:</strong> 16622<br /><strong>Posted:</strong> 22 April 2010 at 10:00pm<br /><br />Hi Everyone!<br><br>i still can't get it, when i tried to select a row the backcolor and forecolor of an item i set is gone... all i want is to retain the backcolor and forecolor of the item... <br>im using VB6 and ReportControl 13.2.1<br><br><br>Any help would be greatly appreciated.. tnx<br><br><br>]]>
   </description>
   <pubDate>Thu, 22 Apr 2010 22:00:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16622&amp;PID=58170&amp;title=report-control-selection-color#58170</guid>
  </item> 
 </channel>
</rss>