WinXAddAnimation


hAni = WinXAddAnimation (parent, STRING file, id)

Creates a new animation control and adds it to a window.

Parameter Description
parent The parent window for the animation control
STRING file The AVI file the animation is based on. The parameter can be the name of an AVI resource or the name of an AVI file.
id The unique id constant for this control

Returns

The handle to the new animation control or 0 on fail

Remarks

The AVI file must be uncompressed with no sound. If you are using the Windows XP controls and the AVI has an alpha channel, the completely transparent parts will be rendered completely transparent.

Examples

'define constants
$$ID_ANI = 100

'create an animation
hAni = WinXAddAnimation (#hMain, "test.avi", $$ID_ANI)

Related Links

WinXAni_Play
WinXAni_Stop