Putting larger images in wxListCtrls

Alexandre Courbot wrote:

I need to display a list of thumbails images and allow the user to
select one of them. To do so, I've created a wxListCtrl, then a
wxImageList, I assign the list to the ctrl, and InsertImageItem()s. But
while this is fine when my images are 16x16 sized, it totally screw up
when larger images, even though I take care to resize both the image
list and the images themselves.

The attached screenshot explicitely shows what's wrong: as you can see,
the two images are just the same, but the ListItem is too small to
contain them entirely, hence the first one isn't displayed completely
and the second overlap the selected item.

It's a bug. The generic wxListCtrl is not taking the image height into account, I'll get it fixed for the next release.

ยทยทยท

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