Анимированная пиктограмма кнопки
unit AnibdemoForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, ComCtrls, DdhAnimB;
type
TForm2 = class(TForm)
ImageList1: TImageList;
DdhAniButton1: TDdhAniButton;
Bevel1: TBevel;
CheckBox1: TCheckBox;
Edit1: TEdit;
UpDown1: TUpDown;
procedure DdhAniButton1Click(Sender: TObject);
procedure Edit1Change(Sender: TObject);
procedure CheckBox1Click(Sender: TObject);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.DFM}
procedure TForm2.DdhAniButton1Click(Sender: TObject);
begin
Beep;
end;
procedure TForm2.Edit1Change(Sender: TObject);
begin
DdhAniButton1.Interval := UpDown1.Position;
end;
procedure TForm2.CheckBox1Click(Sender: TObject);
begin
DdhAniButton1.Active := CheckBox1.Checked;
end;
procedure TForm2.FormShow(Sender: TObject);
begin
CheckBox1.Checked := DdhAniButton1.Active;
end;
end.
|
Загрузить исходный код проекта
Загрузить библиотеку с компонентами
|