Can someone please help fixing a listbox bug?

BlitzMax Forums/BlitzMax GUI Programming/Can someone please help fixing a listbox bug?

@Seb: Thanks a lot for looking into this. Quick fix? Sounds to easy to be true... :) Will you patch the normal guimodule as well or only the axe one?

@David:
LoadIconStrip(MaskPixmap(LoadPixmap("icons.jpg"),-1,-1,-1))

By using "Loadpixmap" you gain some extra milliseconds when loading images as this is an internal function bmx uses. If you know what images your app will eat, you can also use "LoadpixmapPNG" or "LoadpixmapJPEG".

The "maskimage" part is needed to to mask it -1,-1,-1. By default bmx uses 0,0,0 (i.e. black). My icons have black borders, I don't need to mask them at all, so this workaround.



The iconsize does not matter, the bug will occour anyway,
I'm using big icons (96x96) and small ones on my list (16x16). See image above.