ImageID() SetGadgetImage()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GPI.

ImageID (ImageNr.) would be nice.

Also a
SetGadgetImage(#Gadget,Image)
and a
GetGadgetImage(#Gadget)

would be nice

p.s.: Set Image:
useimage(#image):SendMessage_(GadgetID(#gadget), #STM_SETIMAGE, #IMAGE_BITMAP, ImageID())

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by freak.

You can use SetGadgetState() for that.
It's in the Help.

Timo
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by GPI.

But not in the german help...

EDIT: It explanded it the "ImageGadget"-Topic, but not in the ImageButtonGadget or Set/GetGadgetState.

Edit2: UseImage() also return the ImageID(), but it change the current Image(). And WindowID(#nr), GadgetID(#Nr) work...

PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB
Post Reply