Ctl32 Animation

ctl32_animation - an animation control class for Visual FoxPro 9

Overview
This visual class provides an animation control that can be used in VFP9. This class uses the Windows API to create a true Windows Common Controls animation control.


Class Hierarchy
ctl32


ctl32_controlbase
ctl32_animation



Properties, Events and Methods
 ctlOpen(cAviFileName|cModule, [nResourceId])
Opens the specified avi/resource, and starts playing it in a loop in the animation control. Makes the control visible if required.
PARAMETERS
cAviFileName. Character. Full path and name of the avi file to play.
cModule. Character. Full path/name of the resource file (dll, exe) that contains the avi resource to play.
nResourceId. Numeric. If cModule is specified, nResourceId should specify the numeric ID of the avi resource to play.
DESCRIPTION
-
RETURN VALUE
None.
REMARKS
The control is initially invisible. If ctlResource / ctlResourceId have valid values, the specified resource is loaded and played, with no need to call this method.

 ctlResource
Specifies the full path/name of an avi file to play, or the full path/name of a resource file (exe, dll) that contains the avi resource to play.
VALUE TYPE
Character
DEFAULT VALUE
None.
READ/WRITE
Yes.
REMARKS
-

 ctlResourceId
Specifies the numeric id of the avi resource contained in the ctlResource file.
VALUE TYPE
Numeric
DEFAULT VALUE
0
READ/WRITE
Yes.
REMARKS
-

If you use avi files, do not include them in the VFP exe, since they have to exist as files. One cheap way of dealing with this is to rename the avi files with fake names, like for example res0423.dll
Another way is to create a resource only dll with all the avis you need, and use that.
 

No comments:

Post a Comment