Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using GIF file in VFP8

Status
Not open for further replies.

normanhk

Programmer
Oct 4, 2003
15
HK
When I use animated GIF in VFP8, I find some abnormal outcomes. If the GIF is a single round GIF, I always find the GIF played twice before it stops. What's wrong and is there any solution?
 
Not an answer to your question but for animated GIFs I use GIF89.dll (Freeware). So maybe an alternative if you can't get this fixed.


Go to the link above and look for the download
"Animation GIF Control (gif89.dll)"

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Slighthaze, thank you very much for your reply.
Actually I already use a very silly (but practical) solution. I just make the GIF longer with a tail of fixed frames. After WAIT a certain time I just replace with a non-animated GIF that contains the last frame. So there is no chance to play twice. Of course, I have to sacrifice system resources. However I wonder why VFP8 works in this strange way. Have I done something wrong? Or there is any new property that can be set (but I don't know that)?
 
normanhk

If you want an ActiveX control to display animated gifs that does not require VB runtime files try marchoso.ocx


Click on thr link in spanish at the bottom of the page - it is contained within the .zip file and you will need to register it.

FAQ184-2483 - the answer to getting answered.​
Chris [pc2]
 
HI Norman,

VFP 8 has changed in Image control.

Upto VFP7, in an image, control, if you show an animated GIF image, they will be shown as static at run time.
WHere as, in VFP8, the same will show the animation.

So obviously, that you are showing the picture twice, the animation is coming twice, I belive.
Actually I already use a very silly (but practical) solution. I just make the GIF longer with a tail of fixed frames. After WAIT a certain time I just replace with a non-animated GIF that contains the last frame

I suggest, you show the picture once and observe, the gif animation appearing twice could vanish.

Hope that works for you :)

ramani :)
(Subramanian.G)
 
Hi ramani,

An interesting point is you can see the animation directly at the design stage (while you MODI FORM xxx). Even in the form designer, the gif is already played twice!! So it should not be your suggested reason.

I wonder that actually when the object is activiated, it triggers some method so that the object is refreshed in an unexpected manner. Therefore the gif is played twice. However which method is it? Can I bypass it?

Best regards,
Norman
 
normanhk

Have you tried to play the GIF in your internet explorer? Does it play twice there?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi mgagnon,

Definely no problem in IE. I make the GIF myself with Flash.

Best regards,
Norman
 
normanhk

Then may I suggest you place a WebBrowser activex on your form and play the GIF through the Activex, and see if that resolves the problem.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top