Does SetGadgetState() work with ButtonImageGadgets?

Everything else that doesn't fall into one of the other PB categories.
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Does SetGadgetState() work with ButtonImageGadgets?

Post 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
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

I will take a look, thanks.
naw
Enthusiast
Enthusiast
Posts: 573
Joined: Fri Apr 25, 2003 4:57 pm

Post 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
Ta - N
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

Fred,

Any resolution yet about changing the image on ButtonImageGadgets?

Eric
Post Reply