ListCtrl: images in a column
2 answers - 378 bytes -

Hello,
Is it possible to place multiple images in a column of a ListCtrl?
What I want to do is use one column of the ListCtrl to provide hints about
the row via some images.
The hints are like "Has a X, Y, Z" and I want to exemplify this hints by
small 16x16 images
Attached is a small mockup of what I try do.
Thank you in advance.
Peter
No.1 | | 789 bytes |
| 
Peter Damoc wrote:
Hello,
Is it possible to place multiple images in a column of a ListCtrl?
What I want to do is use one column of the ListCtrl to provide hints
about the row via some images.
The hints are like "Has a X, Y, Z" and I want to exemplify this
hints by small 16x16 images
Attached is a small mockup of what I try do.
It is now possible to have images in other columns, but since all of the
images in the wx.ImageList need to be the same size I don't think that
would be the solution you need, unless you use a separate column for
each hint image. IIRC there have been some examples sent here in the
past of positioning controls over cells in a wx.ListCtrl, perhaps you
could do something like that with wx.StaticBitmaps.
No.2 | | 789 bytes |
| 
Peter Damoc wrote:
Hello,
Is it possible to place multiple images in a column of a ListCtrl?
What I want to do is use one column of the ListCtrl to provide hints
about the row via some images.
The hints are like "Has a X, Y, Z" and I want to exemplify this
hints by small 16x16 images
Attached is a small mockup of what I try do.
It is now possible to have images in other columns, but since all of the
images in the wx.ImageList need to be the same size I don't think that
would be the solution you need, unless you use a separate column for
each hint image. IIRC there have been some examples sent here in the
past of positioning controls over cells in a wx.ListCtrl, perhaps you
could do something like that with wx.StaticBitmaps.