Page 1 of 1
Store Info in Imagegadget or Sprite
Posted: Tue Jun 17, 2008 3:40 pm
by Rook Zimbabwe
I would think it would be a good idea to store info in an imagegadget or sprite like we can do with a ListIconGadget and a few other gadgets; which would make it easier to deal with if you wanted to click on them, because they could then return that info (like their name or #ID) and allow you further manipulations...

Posted: Tue Jun 17, 2008 4:04 pm
by Kaeru Gaman
an Imagegadget has a click-event, afaik.
a Sprite is just a bitmap to be pasted into a bigger bitmap.
the moment it is displayed, it just changes the pixels of the target bitmap, nothing more.
there is no Object that would be able to interact with UserInput.
Posted: Tue Jun 17, 2008 4:07 pm
by tinman
Can't you use SetGadgetData() and GetGadgetData() for that?