Unit1.pas
上传用户:psxgmh
上传日期:2013-04-08
资源大小:15112k
文件大小:1k
- unit Unit1;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls;
- type
- TForm1 = class(TForm)
- Button1: TButton;
- Button2: TButton;
- procedure FormCreate(Sender: TObject);
- procedure Button1Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- uses AniEdit;
- var
- myAniEdit : TAniEdit;
- {$R *.dfm}
- procedure TForm1.FormCreate(Sender: TObject);
- begin
- myAniEdit := TAniEdit.Create(self);
- myAniEdit.Interval := 100;
- myAniEdit.Parent := self;
- end;
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- MyAniEdit.StartAni ;
- end;
- procedure TForm1.Button2Click(Sender: TObject);
- begin
- MyAniEdit.StopAni ;
- end;
- end.
-