Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Animated GIF
Message
From
09/01/2003 11:00:27
 
 
To
09/01/2003 08:38:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00739753
Message ID:
00739810
Views:
6
This message has been marked as the solution to the initial question of the thread.
If you want to use WebBrowser control:

Insert a Web Browser control on your form, and size it accordingly. Let's say that you name it objWB

In your form's Init method, put the following code:

thisform.objWB.Navigate("c:\image\animated.gif")
* You will need this to deactivate scroolbars of th WebBrowser
do while thisform.objWB.ReadyState <> 4
enddo
thisform.objWB.Document.Body.Scroll = "no"

But, if you have gif89.dll, i think this is a better way to do it ...

First you must to register the class.Run this in Command prompt: "regsvr32 gif89.dll"
After that:
Tools -> Options -> Controls -> ActiveX contols -> select the gif89 Class
Now you can go in the Form Controls -> View Classes -> ActiveX Controls.
Insert a Gif89 control on your form, and size it accordingly. Let's say that you name it objGif.
In filename property of the object put the name of the image, you can set autoplay property .t.
If you want to play yourself the control you have 2 methods: play and stop.

That's it.

Sorry for my bad english ...

Best regards,
Nitu Petru
Previous
Reply
Map
View

Click here to load this message in the networking platform