Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Animated picture in VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00182276
Message ID:
00183259
Views:
21
Hi nick,

Other way to make an animation in VFP, that I use with no problems is make it with a Container base class

Create a new class bassed on container
Add an Image control for each pictures of your animation and name it ImageX with X=number of picture
Add a timer control and set it to the interval that you like
Add a property named nCurPic and set it to 1
In timer event, do:
With this.parent
.nCurPic = .nCurPic + 1
If .nCurPic > PICTURECount && Is the number of Images
.nCurPic = 1
EndIf
EndWith

This is not the best way and is hard! But works ok! And is pure VFP Code
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.
Previous
Reply
Map
View

Click here to load this message in the networking platform