Does SetGadgetState() work with ButtonImageGadgets?
Posted: Tue Jul 08, 2003 9:48 pm
I am having trouble changing the image on a ButtonImageGadget. I am using code like this:
which works fine if gadget #2 is an ImageGadget. However, the same code doesn't work on a ButtonImageGadget. The help file (v3.71b) says that it should work. Is this a bug or am I doing something wrong?
Thanks,
Eric
Code: Select all
UseJPEGImageDecoder()
...
LoadImage(1, "Artwork\Album1.jpg")
ResizeImage(1, 115, 110)
SetGadgetState(2, ImageID())
Thanks,
Eric