孔
孔明.net
Unregistered / Unconfirmed
GUEST, unregistred user!
var
Form1: TForm1;
i,x:integer;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
var
ZD:array[0..11] of TPanel;
begin
ZD[0]:=Panel1;
ZD[1]:=Panel11;
ZD[2]:=Panel3;
ZD[3]:=Panel4;
ZD[4]:=Panel6;
ZD[5]:=Panel13;
ZD[6]:=Panel8;
ZD[7]:=Panel7;
ZD[8]:=Panel9;
ZD[9]:=Panel10;
ZD[10]:=Panel12;
ZD[011]:=Panel5;
if i=12 then
i:=0;
if x=12 then
x:=0;
zd[x].Color:=$00A00000;
x:=x+1;
ZD.Color:=clRed;
i:=i+1;
zd.Color:=$00A00000;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
i:=1;
end;
procedure TForm1.Button1MouseDown(Sender: TObject;
Button: TMouseButton;
Shift: TShiftState;
X, Y: Integer);
begin
Timer1.Enabled:=true;
Timer1.Interval:=50;
end;
Form1: TForm1;
i,x:integer;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
var
ZD:array[0..11] of TPanel;
begin
ZD[0]:=Panel1;
ZD[1]:=Panel11;
ZD[2]:=Panel3;
ZD[3]:=Panel4;
ZD[4]:=Panel6;
ZD[5]:=Panel13;
ZD[6]:=Panel8;
ZD[7]:=Panel7;
ZD[8]:=Panel9;
ZD[9]:=Panel10;
ZD[10]:=Panel12;
ZD[011]:=Panel5;
if i=12 then
i:=0;
if x=12 then
x:=0;
zd[x].Color:=$00A00000;
x:=x+1;
ZD.Color:=clRed;
i:=i+1;
zd.Color:=$00A00000;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
i:=1;
end;
procedure TForm1.Button1MouseDown(Sender: TObject;
Button: TMouseButton;
Shift: TShiftState;
X, Y: Integer);
begin
Timer1.Enabled:=true;
Timer1.Interval:=50;
end;