wxListBox how to change BackGround of selected items

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
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

wxListBox how to change BackGround of selected items

Post by cutecode »

How to change BackGround/ForeGround color of selected items in wxListBox

Thank you
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxListBox how to change BackGround of selected items

Post by doublemax »

Under most (all?) platforms these are native controls and you can't change these colors.

If you really need that feature, you could switch to another control, e.g. wxSimpleHtmlListBox or wxHtmlListBox
http://docs.wxwidgets.org/trunk/classwx ... t_box.html
Use the source, Luke!
Post Reply