<?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 : SOLVED: Changing highlight colour</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : SOLVED: Changing highlight colour]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 16:52:31 +0000</pubDate>
  <lastBuildDate>Mon, 23 Jan 2012 03:04:18 +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=19425</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[SOLVED: Changing highlight colour :  Hi,Add &amp;#034;ReportControl.SetCustomDraw...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19425&amp;PID=67482&amp;title=solved-changing-highlight-colour#67482</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 19425<br /><strong>Posted:</strong> 23 January 2012 at 3:04am<br /><br />Hi,<br><br>Add "ReportControl.SetCustomDraw xtpCustomBeforeDrawRow" to the ReportControl setup then using the BeforeDrawRow event:<br><br><table width="99%"><tr><td><pre class="BBcode">Private Sub ReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)<br>&nbsp;&nbsp;&nbsp; If Item.Record(7).Value = "Auth" Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportControl.PaintManager.HighlightBackColor = vbGreen<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportControl.PaintManager.HighlightBackColor = vbRed<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Mon, 23 Jan 2012 03:04:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19425&amp;PID=67482&amp;title=solved-changing-highlight-colour#67482</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Changing highlight colour :   HiI do the same with tasks,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19425&amp;PID=67476&amp;title=solved-changing-highlight-colour#67476</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 19425<br /><strong>Posted:</strong> 21 January 2012 at 7:54am<br /><br />Hi<div>&nbsp;</div><div>I do the same with tasks, that are overdue, etc.</div><div>This is the idea of the code I use.</div><div>&nbsp;</div><div>rRecord will be the record row you want to change.</div><div>&nbsp;</div><div>Dim iItems As ReportRecordItem<br>Dim rRecord As ReportRecord</div><div>Dim CColor As Long</div><div><br>CColor = &amp;H998AFD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' RED</div><div>&nbsp;</div><div><br>For Each iItems In rRecord<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; iItems.BackColor = CColor<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>Next</div>]]>
   </description>
   <pubDate>Sat, 21 Jan 2012 07:54:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19425&amp;PID=67476&amp;title=solved-changing-highlight-colour#67476</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Changing highlight colour : Here&amp;#039;s a quick example (add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19425&amp;PID=67474&amp;title=solved-changing-highlight-colour#67474</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 19425<br /><strong>Posted:</strong> 21 January 2012 at 12:21am<br /><br />Here's a quick example (add a ReportControl called ReportControl1 to a form then paste the following code):<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Private Sub Form_Load()<br>&nbsp;&nbsp; Dim i As Long<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; With Me.ReportControl1<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Columns.Add 0, "Test", 100, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 1 To 25<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If i Mod 2 = 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem i<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem Chr$(65 + i)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Populate<br>&nbsp;&nbsp; End With<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; SetHighlightColor Me.ReportControl1.FocusedRow<br>End Sub<br><br>Private Sub ReportControl1_FocusChanging(ByVal NewRow As XtremeReportControl.IReportRow, ByVal NewColumn As XtremeReportControl.IReportColumn, ByVal NewItem As XtremeReportControl.IReportRecordItem, Cancel As Boolean)<br>&nbsp;&nbsp; SetHighlightColor NewRow<br>End Sub<br><br>Private Sub SetHighlightColor(po_Row As XtremeReportControl.IReportRow)<br>&nbsp;&nbsp; If po_Row Is Nothing Then Exit Sub<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; If IsNumeric(po_Row.Record.Item(0).Value) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.ReportControl1.PaintManager.HighlightBackColor = vbRed<br>&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.ReportControl1.PaintManager.HighlightBackColor = vbBlue<br>&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Sat, 21 Jan 2012 00:21:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19425&amp;PID=67474&amp;title=solved-changing-highlight-colour#67474</guid>
  </item> 
 </channel>
</rss>