Page 1 of 1

button.gadget not updating

Posted: Mon Jun 30, 2014 1:16 am
by chris
Since the recent button.gadget update (53.17) my button imagery is failing to refresh.
Basically I'm doing a RefreshSetGadgetAttrs to push a new bitmap.image to the button, however the image does not update.
The tag is being accepted, as if I click on the button I can see the new image, however it is no longer updating without me manually forcing it through the GUI.

Re: button.gadget not updating

Posted: Mon Jun 30, 2014 9:35 am
by salass00
As usual a small test program would be helpful. Also what was the last version of button.gadget that was working?

Re: button.gadget not updating

Posted: Mon Jun 30, 2014 11:11 pm
by chris
salass00 wrote:As usual a small test program would be helpful.
Attached.

It's a hacked old image button example - I've changed the ghost so it should toggle the unselected top gadget between the selected/unselected image.
Also what was the last version of button.gadget that was working?
No idea. It's whatever the previous public version was - Rollback won't tell me the version.

Re: button.gadget not updating

Posted: Tue Jul 01, 2014 3:34 am
by LyleHaze
I can confirm that button.gadget 53,15 is working correctly.

With the code given:

On initial opening, the top button graphics show "Selected" when pressed, "unseleted" when not pressed.
Click once on the ghost(bottom button) to add a big red 'X', top button graphics still work as expected.
Click again on the ghost, Red 'X' is removed, top button appears "stuck" in the selected state, because the program has assigned the "selected" image to both states of the top button.

So the initial opening is the only time the top button graphics can toggle while the bottom button is unselected.

As mentioned before, this is working correctly under button.gadget 53.15, though the actual behavior is a bit odd, it accurately follows the code logic.
I'll also add that the toggle state of the lower button is not actually linked to the gadget state, but a separate on-off toggle that could get out of sync with the actual button state.

Re: button.gadget not updating

Posted: Tue Jul 01, 2014 10:56 am
by salass00
chris wrote: It's a hacked old image button example - I've changed the ghost so it should toggle the unselected top gadget between the selected/unselected image.
The GA_Image refresh issue should be fixed in version 53.18 which I've just uploaded for betatesting.

Re: button.gadget not updating

Posted: Tue Jul 01, 2014 11:29 am
by chris
salass00 wrote:The GA_Image refresh issue should be fixed in version 53.18 which I've just uploaded for betatesting.
Wonderful, thanks.