Reputation: 11
Anyone know a way to set the text background colour in a wxWidgets wxTreeListCtrl?
Upvotes: 0
Views: 367
Reputation: 5261
Short answer: No. http://trac.wxwidgets.org/ticket/17040#ticket
Long answer: If you really want to be able to do this, you'll need to derive your own class from wxTreeListModel and override wxDataViewModel::GetAttr() to set the item colors. wxTreeListModel is not public, so you'd have to change that in wxWidgets. Alternatively, you could copy the whole wxTreeListModel source to your project, rename it and modify it there. Both are messy, see short answer #1.
Upvotes: 1