![]() |
Forecolor changes when selected |
Post Reply ![]() |
Author | |
Shawshank ![]() Senior Member ![]() Joined: 16 October 2005 Status: Offline Points: 117 |
![]() ![]() ![]() ![]() ![]() Posted: 09 April 2006 at 1:37pm |
I have a RC populated with several records. The first Item in each Record has it's font forecolor set to gray. If I select the Item the font forecolor changes back to the default black. Is there a setting somewhere that controls this? I've even tried catching the SelectionChanged event and setting the color back to gray but this also fails. Is there a way to stop this behavior? |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Not sure what's the problem you describe, plz show it on a picture if possible.
May be you need to set ReportControl.PaintManager.ShadeSortColumn = False ? Or any other property of the PaintManager? -- WBR, Serge |
|
![]() |
|
Shawshank ![]() Senior Member ![]() Joined: 16 October 2005 Status: Offline Points: 117 |
![]() ![]() ![]() ![]() ![]() |
As you can see from the pic I have populated the RC with several Records. I set the Forecolor of each Item(0) to grey. When I selected a Record the Item(0).Forecolor reverted back to the default of black. This is easy to duplicate. Seems like a bug, what do you think? It does not revert back to the grey color when no longer highlighted. |
|
![]() |
|
nighthawk ![]() Senior Member ![]() ![]() Joined: 11 June 2004 Status: Offline Points: 167 |
![]() ![]() ![]() ![]() ![]() |
How about adding the following the the ReportControl_BeforeDrawRow() event:
If (Row.Selected = True) Then ReportControl.PaintManager.HighlightForeColor = Item.ForeColor End If For the event to fire, you need to add the following in the record control setup: ReportControl.SetCustomDraw xtpCustomBeforeDrawRow |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Thanks nighthawk, that's correct -- highlighted (selected) rows have it's own colors which could be changed as mentioned.
-- WBR, Serge |
|
![]() |
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 |