Animation Gadget - last update Dec30 2013
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: Animation Gadget - last update Dec30
Is it possible to use your splendid gadget with a windows with image background ?

Not a destination
Re: Animation Gadget - last update Dec30
both links are broken;
any chance of re-up?
any chance of re-up?
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Animation Gadget - last update Dec30
It was among a bunch of stuff I lost last year. If someone has it and can email it to me I'll upload it again but failing that I just don't have it.
BERESHEIT
Re: Animation Gadget - last update Dec30
I removed my post since it was no longer relevant now the code from netmaestro has been found.
Last edited by wilbert on Tue Jul 26, 2016 9:02 pm, edited 1 time in total.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Animation Gadget - last update Dec30
I'll post it here for a few weeks (maybe during that time it will be caught by the Wayback Machinenetmaestro wrote:It was among a bunch of stuff I lost last year. If someone has it and can email it to me I'll upload it again but failing that I just don't have it.

[temporary link removed]
@Edit: Removed temporary link.
Last edited by Demivec on Mon Jan 23, 2017 12:44 am, edited 1 time in total.
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Animation Gadget - last update Dec30
Thanks to davido and Demivec the project is back online! Link in the first post works again and for added safety I've posted the .pbi code there too. So it shouldn't get lost again.
BERESHEIT
Re: Animation Gadget - last update Dec30 2013
The code is crashing on all eight animated gifs at this page - https://www.fastcodesign.com/1665547/8- ... -l-reynaud
I don't know the reason for the decoding problem but the reason for the crash is there are two instances of code like the following which assume a valid ptr, but the ptr is null with those images due to decoding problem:Needs to be:
The image still won't render but the crash is fixed.
I don't know the reason for the decoding problem but the reason for the crash is there are two instances of code like the following which assume a valid ptr, but the ptr is null with those images due to decoding problem:
Code: Select all
*this.GifObject = GifObjectFromFile(GetGadgetText(0)) ;<-- search for this line (2 instances)
w=*this\containerwidth
...
Code: Select all
*this.GifObject = GifObjectFromFile(GetGadgetText(0))
If *this.GifObject ;check null ptr
w=*this\containerwidth
...
Re: Animation Gadget - last update Dec30 2013
H Keya, netmaestro
Windows 10 / PureBasic 5.51 (x86 / x64)
All eight examples worked from the link Keya provided; didn't make any changes to the code (download from the first post).
- saved GIFs directly to the GifDecoder folder, adding to the existing images
Windows 10 / PureBasic 5.51 (x86 / x64)
All eight examples worked from the link Keya provided; didn't make any changes to the code (download from the first post).
- saved GIFs directly to the GifDecoder folder, adding to the existing images
If you're not investing in yourself, you're falling behind.
My PureBasic Stuff ➤ FREE STUFF, Scripts & Programs.
My PureBasic Forum ➤ Questions, Requests & Comments.
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Animation Gadget - last update Dec30 2013
They're working here too, so I really don't know what could be going wrong for you. Tested on PB 5.51 x86 and x64 Windows 7.
BERESHEIT
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Animation Gadget - last update Dec30 2013
[edit] No longer applicable.
Last edited by netmaestro on Tue Jan 24, 2017 7:01 pm, edited 2 times in total.
BERESHEIT
Re: Animation Gadget - last update Dec30 2013
sorry guys i mustve used been using a modified or older version. I still think that ptr check is good though hehe. brilliant work as always netmaestro!
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Animation Gadget - last update Dec30 2013
Thanks Keya, you've taught me a few things along the way and I hold your opinion in high esteem 

BERESHEIT
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Animation Gadget - last update Dec30 2013
I completed the 24bit version today, code is added to the first post (it's also included in the download along with the original)
BERESHEIT