Placing sprites inside windows

BlitzMax Forums/BlitzMax Beginners Area/Placing sprites inside windows

Marco A G Pinto(Posted 2012) [#1]
Hello!!!

How do I place sprites inside windows?

Will they appear over the GUI panels and buttons?

Thanks!

Kind regards,
>Marco A.G.Pinto
-------------------


jsp(Posted 2012) [#2]
Attaching pixmaps to panels is the best way to go, as it seems that using it with buttons does not work for everyone.
Use SetGadgetPixmap( gadget:TGadget, pixmap:TPixmap, flags% = GADGETPIXMAP_ICON ) to attach the pixmap to your panel.
If your pixmap then look like a button and you use the events of the panel, then it will also react like a button, or it can serve just as a picture shown or as background graphic if other gadgets are on top.