LOTS of Icons and Listboxes

BlitzMax Forums/BlitzMax Beginners Area/LOTS of Icons and Listboxes

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks for the help skidracer.

Though I'm not 100% how to do this in bmx. :(

First, I create a full but empty iconstrip pixmap
Global Fullpixmap:TPixmap=CreatePixmap((MAXGADGETS*32),32,PF_RGBA8888)

In a for i=0 to MAXGADGETS-1 loop I then...
1. Load the images into a temp pixmap
tmppixmap=LoadPixmap("Incbin::./Media/"+i+".jpg")

2. Size the image down to the needed icon size (e.g. 32x32):
ResizePixmap(tmppixmap,32,32)

3. But how do I paste / copy this tmp pixmap into the full one? At the position I need (i.e. i*32 as x value)

fullpixmap.paste(tmppixmap,0,0) is not right...

At the end I load the full iconpixmap and set it to the lsitbox gadget:

Local IconStrip:TIconStrip=LoadIconStrip(fullpixmap)
SetGadgetIconStrip(ListBox, IconStrip)

Finally I can add gadgets to the listbox displaying the icons:

For Local i=0 To MAXFGADGETS-1
AddGadgetItem ListBox, i,0,i
Next