Show wxListCtrl item row as disabled

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
deepti
Earned some good credits
Earned some good credits
Posts: 115
Joined: Tue Jul 17, 2018 5:38 pm

Show wxListCtrl item row as disabled

Post by deepti »

Hi All,

I have a wxListCtrl with checkboxes. On click of a checkbox, the corresponding row should be shown as disabled/greyed out. And when unchecked, it should be displayed normally again.
Is there a way we can achieve this?
Please help..
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7478
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Show wxListCtrl item row as disabled

Post by ONEEYEMAN »

Hi,
Are you using wxCheckListBox?

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Show wxListCtrl item row as disabled

Post by doublemax »

You can only change the item colors to make it look disabled.

wxListCtrl::SetItemBackgroundColour
https://docs.wxwidgets.org/trunk/classw ... ffefdc9a30

wxListCtrl::SetItemTextColour
https://docs.wxwidgets.org/trunk/classw ... cdefcdaf11
Use the source, Luke!
Post Reply