![]() |
Selected record background color |
Post Reply
|
| Author | |
yoavm
Groupie
Joined: 15 July 2006 Status: Offline Points: 47 |
Post Options
Thanks(0)
Quote Reply
Topic: Selected record background colorPosted: 10 January 2018 at 8:29pm |
|
Hi,
One of the column is state which has background color (red,
orange, yellow, green). When the record selected the select color overlay the state
column color. I need a way to retain the background color of the state
column when the record selected. I need a quick response. Thanks, yoavm |
|
![]() |
|
olebed
Senior Member
Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2018 at 4:06am |
|
Hello yoavm,
Try to delete last part of CXTPReportRow::GetItemMetrics() method (Source\ReportControl\XTPReportRow.cpp)
Regards, Oleksandr Lebed |
|
![]() |
|
yoavm
Groupie
Joined: 15 July 2006 Status: Offline Points: 47 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2018 at 11:06am |
|
This will remove the selected color and leave the selected
line without color. This was not what I need. I need the selected color with the ability to override
background color for a specific column. Thanks, yoavm |
|
![]() |
|
olebed
Senior Member
Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2018 at 11:23am |
|
you can play with virtual method CXTPReportRecord::GetItemMetrics() and that method CXTPReportRow::GetItemMetrics() from library.
see our sample Samples\ReportControl\ReportSample\TaskListView.cpp method CTaskRecord::GetItemMetrics() (you can see this sample with by clicking in main menu "Report Control" > "Control Test" > "Task List sample") such virtual methods are called from CXTPReportRow::GetItemMetrics()
|
|
![]() |
|
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 |