ListCtrl.SetStringItem on windows problem?

Hi,

I try to put an image on the second column of my list. The first column
already could contain an image.

To add the image in the first column, I use

    InsertImageStringItem(index, label, imageIndex)

that perfectly works under both platforms (linux & windows).

And to add the image in the second column, I use the

    SetStringItem (index, col, label, imageId).

which perfectly work under linux. But under windows, the image doesn't want to
appear in the second column.

If I print the item.m_image value of the item, I have always the value 0
whatever (-1 or 1) I try to set it (under windows).
But under linux, the value is correct.

Is this a known bugs for windows or did I certainly do something wrong?
Or maybe this could be done with some kind of workaround...

Thanks,
-philippe

Philippe Ney wrote:

And to add the image in the second column, I use the

    SetStringItem (index, col, label, imageId).

which perfectly work under linux. But under windows, the image doesn't want to
appear in the second column.

If I print the item.m_image value of the item, I have always the value 0
whatever (-1 or 1) I try to set it (under windows).
But under linux, the value is correct.

Is this a known bugs for windows or did I certainly do something wrong?
Or maybe this could be done with some kind of workaround...

The native widget used by wxListCtrl on MSW only supports images in the first column.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!