Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - How to change background color of row when settinF
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change background color of row when settinF

 Post Reply Post Reply
Author
Message
davidmcelroy View Drop Down
Newbie
Newbie
Avatar

Joined: 27 January 2007
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidmcelroy Quote  Post ReplyReply Direct Link To This Post Topic: How to change background color of row when settinF
    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.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2007 at 5:45am
Hi,

Yes, you can use:

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


--
WBR,
Serge

Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2007 at 6:35am
Hi,

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

--
WBR,
Serge
Back to Top
davidmcelroy View Drop Down
Newbie
Newbie
Avatar

Joined: 27 January 2007
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidmcelroy Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2007 at 7:59am
Thank you very much.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.