图1 添加组件后的窗体 |
procedure TForm1.FormCreate(Sender: TObject); begin self.Animate1.Active:=true; end; |
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls; type TForm1 = class(TForm) Animate1: TAnimate; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin self.Animate1.Active:=true; end; end. |
图2 程序运行结果 |