![]() ![]() ![]() |
![]() |
Usage:
animate(Handle, Parent, Icon_func(_), AVI file, X,
Y)
Creates an animation control.
Handle | handle. Use _ if you don't need it. |
Parent | handle of the parent window. Use _ for default. |
Animate_func(_) | predicate which will receive animate messages |
AVI file | A string containing a path to an AVI file. Unfortunately not all AVI files are suitable for animation controls. This is because of some restrictions in MS Windows. Most of the AVI files which you can find will not work with animation control. For creating proper AVI file use Video for Windows SDK . If you don't have this program but you want to make a professional product with your own animation then you can offer it to our artist. |
X, Y | coordinates of upper left corner |
Example:
?-window( _, _, win_func(_), "Animation control demo", 100, 100, 200, 200).
win_func(init):-
animate(_, _, fail(_),
"res/Dillo.avi", 50, 50).
See also: