Page 1 of 1

Does SetGadgetState() work with ButtonImageGadgets?

Posted: Tue Jul 08, 2003 9:48 pm
by ebs
I am having trouble changing the image on a ButtonImageGadget. I am using code like this:

Code: Select all

UseJPEGImageDecoder()
...
LoadImage(1, "Artwork\Album1.jpg")
ResizeImage(1, 115, 110)
SetGadgetState(2, ImageID())
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

Posted: Wed Jul 09, 2003 8:51 am
by Fred
I will take a look, thanks.

Posted: Fri Jul 11, 2003 2:05 pm
by naw
Hi,
Just a question (probably should be in *wishlists*) do the AdvancedGadgetEvents() work with ButtonImageGadget()?
Will the ButtonGadget() flags work with ButtonImageGadget()? #PB_Button_Toggle would be very useful

Ta - NAW

Posted: Sat Jul 12, 2003 4:35 pm
by ebs
Fred,

Any resolution yet about changing the image on ButtonImageGadgets?

Eric