Store Info in Imagegadget or Sprite

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Store Info in Imagegadget or Sprite

Post 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... :D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post 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.
oh... and have a nice day.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

Can't you use SetGadgetData() and GetGadgetData() for that?
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
Post Reply