Animation control with API
By: Ramon Guerrero Date: 13/07/1998
File:

rganimate.exe

Size:

35 KB

Download now!

This project replaces the standard Animation control in VB5 (usually included in the common controls ActiveX library). This control is used to display windows animations such as file copying or file moving AVIs.

Add to your project the one class module and the one form module. In the Form_Load event, edit the following lines:

Animate.Create formhandle, avifilename, x1, y1, x2, y2

formhandle is the handle of the form to create Animation on. For example, to create the Animation control on Form1 use Form1.Hwnd
avifilename is the AVI file to display in the animation control You can include path.
x1 and y1 are the coordinates of the top left corner of the Animation.
x2 and y2 are the coordinates of the bottom rigth corner of the Animation

Then use the line Animate.AnimatePlay to start animation and the line Animate.AnimateStop to stop animation.

To find out other methods and properties, use the Object Browser (View menu).

Run the install program. Once you have unpached the files, follow above instructions.

Click Here!


Visual Basic Programming Zone is a website by Lorenzo Dalla Vecchia.
Webmaster's e-mail: webmaster@vbprogzone.cjb.net
Hosted by InWind: www.inwind.it