wxListCtrl ImageList Topic is solved

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
miclus
Can't get richer than this
Can't get richer than this
Posts: 747
Joined: Tue Mar 31, 2009 2:11 am

wxListCtrl ImageList

Post by miclus »

Hi. I'm trying to set the image list, but only a particular column. I was able to get it to show in the column I want, but it still shows in the 1st column also. I tried to tell it when adding items in the first column to use image index -1, but then it leaves a gap the size of the image in the first column... Any ideas how I make it not try to show the image in the first column?
spectrum
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Sat Jul 21, 2007 12:17 pm

Post by spectrum »

Hi miclus,

maybe is a style issue, just try to set only the "report" style, or combining it with the "small icon" style.

If all you attempts fail, i used wx 2.9.0 (2.8 was someway uncomplete) wxDataViewListCtrl with custom render for this.

http://docs.wxwidgets.org/trun/classwx_ ... _ctrl.html
http://docs.wxwidgets.org/trun/classwx_ ... derer.html

Greetings
spectrum
Post Reply