my Examble Gif in Canvas
Thanks for the example Xojo program @RudolfJ.
It appears that this program may work on MacOS, and does not appear to work on Windows OS or Linux Debian OS (Raspberry Pi).
I have created an issue for Xojo to look into this possible bug.
For what it’s worth, I have been able to try this project on a gif file where it did not work (only animated on the right side (HML viewer)).
On macOS? Did you start the timer? Can you share your gif?
This example does not use an HTMLViewer it uses an ImageViewer.
hello
The interesting thing about the imageviewer is the continued delivery of the displayed image after just one mouse click in the canvas under MacOS
Yes.
Also yes. And the label showing the images count displayed “0”.
Sadly no, it’s a private one.
You’re right. When I wrote my reply here, I wasn’t in front of the IDE (which was closed), and I mixed the discussion with a previous statement to use an HTML viewer, hence my wrong wording. The ImageViewer shows the gif fine.
The same happen when you use the Dog.Gif above, that is not a problem the count display only works for Tiff.
Did other Gifs work? (Like the dog.gif above)
Edit: I think that if you don’t activate the timer, only 1 frame is shown.
So this example works for me on macOS, but I don’t understand why it works.
Removing the ImageViewer causes the image to not animate when the canvas is refreshed.
So presumably, the fact the the picture is displayed in the ImageViewer (even when its hidden) is silently changing which frame the picture property is referring to as the gif animates. So when the canvas redraws the image, it’s drawing the same frame that is currently displayed in the image viewer.
This is cool, but it seems unintended in a way.
Interesting. Even hidden and disabled works but needs to assign the gif to the ImageViewer.
Changing the timer value only makes the canvas draw more frames or less frames but the frame displayed is the same as ImageViewer. Didn’t notice this, good eyes.