【delphi开源代码栏目提醒】:网学会员delphi开源代码为您提供AnimBF.pas参考,解决您在AnimBF.pas学习中工作中的难题,参考学习。
unit AnimBF;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Animate1: TAnimate;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormCreate(Sender: TObject);
var
hDiff: Integer;
begin
Animate1.Parent := Button1;
hDiff := Button1.Height - Animate1.Height;
Animate1.SetBounds (hDiff div 2, hDiff div 2,
Animate1.Width, Animate1.Height);
Animate1.Active := True;
end;
end.
上一篇:
Analyse.pas
下一篇:
超市进销存管理系统的开发