I am trying to get the little 'arrow images' working on a ListCtrl with
ColumnSorterMixin.
As soon as I add an "image list" to the list control, I get an image
column in the control. I don't want the images left of the list items,
but I do want the sorting arrows in the column labels.
I can "solve" the issue by making image 0 an empty 16x16 bitmap, but the
result is still that all items have 16 pixels chopped off at the left
margin which is ugly.
Is there a solution or workaround?
It would be nice if the ColumnSorterMixin had its own built-in images
(maybe even ones that go well with the platforms). Using the image list
feels slightly odd.
I am trying to get the little 'arrow images' working on a ListCtrl with
ColumnSorterMixin.
As soon as I add an "image list" to the list control, I get an image
column in the control. I don't want the images left of the list items,
but I do want the sorting arrows in the column labels.
I can "solve" the issue by making image 0 an empty 16x16 bitmap, but the
result is still that all items have 16 pixels chopped off at the left
margin which is ugly.
Is there a solution or workaround?
Nope. That is a "feature" of the native MS list view control. It assumes that if there is an image list that at least one of your items is going to have an image.
It would be nice if the ColumnSorterMixin had its own built-in images
(maybe even ones that go well with the platforms). Using the image list
feels slightly odd.
On MSW the native control is the one drawing those images and it gets them from the image list.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!