I looked over the ListCtrl code from the 2.5.2.8 demo program.
I am trying to the up & down triangles seen when sorting a column.
Everything works except that all rows in the first column show
the up arrow triangle to the left of the string in that particular
cell.
I got the same result when running on MS Windows. I came to the conclusion
that setting an ImageList on a ListCtrl implies that all items in the first
column *must* have an image and that it defaults to the first one in the
ImageList if you don't explicitly set one.
The only way I found to get round it was to insert a dummy first column and
set its width to zero. I would be interested if there was a better way.
I looked over the ListCtrl code from the 2.5.2.8 demo program.
I am trying to the up & down triangles seen when sorting a column.
Everything works except that all rows in the first column show
the up arrow triangle to the left of the string in that particular
cell.
I got the same result when running on MS Windows. I came to the conclusion
that setting an ImageList on a ListCtrl implies that all items in the first
column *must* have an image and that it defaults to the first one in the
ImageList if you don't explicitly set one.
The only way I found to get round it was to insert a dummy first column and
set its width to zero. I would be interested if there was a better way.
Try explicitly setting the image id for each item to -1.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!