unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
procedure Button1Click(Sender: TObject);
procedure FormShow(Sender: TObject);
private
i:integer;{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
inherited;
inc(i);
form1.Caption:='aa'+inttostr(i);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage('bb');
end;
procedure TForm1.FormShow(Sender: TObject);
begin
i:=0;
end;
end.