HOWTO: Colorize group rows |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
Posted: 18 December 2008 at 4:31pm |
Hi;
I try to set different colors on group rows. So I overwrite CXTPReportControl::GetItemMetrics() and set the color when a group row is detected. Everything works fine, except when the control initially does not have the input focus. In this case, the group row is still drawn with default colors. My code looks like this:
Any ideas? |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
OK!
Found the solution myself. Had to do with the if statement used to determine if the color should be applied. |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
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 |