Quite68
Quite68

Reputation: 11

How to set text background color in wxTreeListCtrl

Anyone know a way to set the text background colour in a wxWidgets wxTreeListCtrl?

Upvotes: 0

Views: 367

Answers (1)

Cinder Biscuits
Cinder Biscuits

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

Related Questions