How to show non-editable rows as grayed-out |
Post Reply |
Author | |
RHolmes
Newbie Joined: 24 June 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 24 June 2008 at 1:37pm |
Hello,
I am using a CXTPReportControl in my project (and one of the columns in the report is a check box.) Some columns are editable and some aren't. I have overridden the OnClick and SetChecked functions for the check box report item and control the functions using a isEnabled variable. I hope that is correct way to control check box behavior. I want to be able to visually show that some rows are disabled (not editable). I would like to be able to show the rows grayed-out. Is there an easy way to do this? Thanks. |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Set the pMetric->clrBackground in CYourReportCtrl::GetItemMetrics, depending on pItem->isEnabled. I believe you can find such code in the samples.
|
|
RHolmes
Newbie Joined: 24 June 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Thank you very much. Your suggestion was very helpful and answered my question.
|
|
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 |