![]() |
SOLVED: Changing highlight colour |
Post Reply ![]() |
Author | |
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1355 |
![]() ![]() ![]() ![]() ![]() Posted: 21 January 2012 at 12:21am |
Here's a quick example (add a ReportControl called ReportControl1 to a form then paste the following code):
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
markmark ![]() Senior Member ![]() Joined: 30 November 2007 Status: Offline Points: 142 |
![]() ![]() ![]() ![]() ![]() |
Hi
I do the same with tasks, that are overdue, etc. This is the idea of the code I use. rRecord will be the record row you want to change. Dim iItems As ReportRecordItem Dim rRecord As ReportRecord Dim CColor As Long CColor = &H998AFD ' RED For Each iItems In rRecord iItems.BackColor = CColor Next |
|
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 |
|
![]() |
|
Xander75 ![]() Senior Member ![]() ![]() Joined: 26 April 2007 Status: Offline Points: 353 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Add "ReportControl.SetCustomDraw xtpCustomBeforeDrawRow" to the ReportControl setup then using the BeforeDrawRow event:
|
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |