{{tag>category:"Form Designer" author:"Chris Meyer" author:"Barry Stevens" author:"David Goddard"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== Animated GIF button (Form Designer) ====
=== At 08 SEP 2012 06:08:16AM Chris Meyer wrote: ===
Is it possible to have an animated gif as a bitmap for a button on a form. The GIF appears as the button back ground but no animation.
TIA
Chris
----
=== At 11 SEP 2012 05:10PM Barry Stevens wrote: ===
have you tried :"#" as per example for .DLL, just a thought
----
=== At 12 SEP 2012 02:01AM David Goddard wrote: ===
No, GIF animation is not supported.
You could use a window timer event to change the image on the button.
Dave G
----
=== At 12 SEP 2012 02:26AM Barry Stevens wrote: ===
How would you change the frames in the amimated gif on the timer envent, could not then be applied to what he wants and just change to 1 frame
----
=== At 12 SEP 2012 02:42AM David Goddard wrote: ===
OpenInsight does not support annimated GIF's
You would fake animation by changing images. The images would be in bmp, jpg or png format, one image per file.
image1.bmp
image2.bmp
image3.bmp
then on a window timer event do something like this
image = get_property(ctrl,'BITMAP')
image.pos = image[-5,1]
if image.pos = 3 then image.pos = 0
image.pos += 1
image[-5,1] = image.pos
void = set_property(ctrl,'BITMAP',image)
Dave G
----
=== At 12 SEP 2012 07:11AM Barry Stevens wrote: ===
Ah, now I see what you meaning.
----
=== At 12 SEP 2012 07:13AM Barry Stevens wrote: ===
Contact Don bakke at SRP for one of his ole's
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=8A490F7B65C6697976D6A2AAA|View this thread on the Works forum...]]