Print Page | Close Window

How to change background color of row when settinF

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=6249
Printed Date: 19 September 2024 at 6:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change background color of row when settinF
Posted By: davidmcelroy
Subject: How to change background color of row when settinF
Date Posted: 27 January 2007 at 8:20pm
I'm setting my Report Control to a specific row in my code using wndReportControl.FocusedRow = row; The background color is dark gray and i've tried using BeforeDrawRow without success. I can change the color when the user selects it but not until then. Is there a PaintManager setting that will do this?
 
Thank you in advance for your help.



Replies:
Posted By: sserge
Date Posted: 31 January 2007 at 5:45am
Hi,

Yes, you can use:

ReportControl.PaintManager.HighlightBackColor = ...
ReportControl.PaintManager.HighlightForeColor = ...


--
WBR,
Serge



Posted By: nighthawk
Date Posted: 31 January 2007 at 5:21pm
How do I restore the default value to those two properties?  It used to be that if I set the HighlightBackColor and HighlightForeColor to -1, then the default color would be restored.  In the latest version, -1 is interpreted as black.  The only workaround I can come up with now is to store the initial value in a global variable and then use that to restore the default color.


Posted By: sserge
Date Posted: 05 February 2007 at 6:35am
Hi,

Yes, this was changed in the last version. You've chosen a correct workaround.

--
WBR,
Serge


Posted By: davidmcelroy
Date Posted: 05 February 2007 at 7:59am
Thank you very much.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net