OWLNext 7.0
Borland's Object Windows Library for the modern age
|
The TAnimateCtrl class encapsulates the Animation Control (a window that silently displays an AVI (Audio Video Interleaved) clip.
To create a new control, use the TAnimateCtrl(parent, id, x, y, w, h, module) constructor. For example, you could use the following code within the constructor of a parent window:
This creates an animation control with the ID of 0x100, at location (5,10), 50 pixels wide and 60 pixels high within the client area of the TClientWindow window.
To alias an animation control which is part of a dialog resource, use the TAnimateCtrl(parent, resourceId, module) constructor. The following resource definition creates a dialog containing an animation control:
The following code shows how to alias an animation control within the constructor of a Tdialog-derived class:
The specified caption of the control may contain the name of an .AVI resource to be opened automatically by the control.
Passing -1 as the third argument to the Play method instructs the control to replay the clip indefinitely.