home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
tegl_ii
/
intro
/
animtst2.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-04-06
|
1KB
|
50 lines
{*********************************************************}
{ TEGL Windows ToolKit II }
{ Copyright (C) 1990, TEGL Systems Corporation }
{ All Rights Reserved. }
{*********************************************************}
Uses
crt,
tgraph,
videochk,
{ teglintr, }
animunit,
teglmain,
TEGLIcon,
{ TEGLMenu, }
TEGLUnit;
{ fastgrph; }
var BounceIcon : animateobject;
begin
SetVideoChoices(TG_VGA,false);
EasyTEGL;
init(BounceIcon);
AddFrame(BounceIcon,@imageblankbut,-15,0,14,37,10,0,0,black);
sequence(BounceIcon,1);
ResetSequence(BounceIcon);
AddFrame(BounceIcon,@imageblankbut,15,0,14,37,10,0,0,black);
sequence(BounceIcon,2);
Origin(BounceIcon,GetMaxx div 2,GetMaxy div 2);
animateinit;
clearkeyboardbuf;
while not keypressed do
begin
sequence(BounceIcon,1);
Animate(BounceIcon,Destination(BounceIcon,36,0));
sequence(BounceIcon,2);
Animate(BounceIcon,Destination(BounceIcon,560,0));
end;
TEGLSupervisor;
end.