林
林枫
Unregistered / Unconfirmed
GUEST, unregistred user!
如题。
看看我是这样写的:
procedure TForm1.FormCreate(Sender: TObject);
var
b:array[0..10,0..10]of Timage;
i,j,x,y,k:integer;
begin
i:=0;
j:=0;
k:=0;
x:=0;
y:=0;
for i:=0 to 3 do
begin
for j:=0 to 3 do
begin
b[i,j]:=Timage.Create(self);
b[i,j].picture.LoadFromFile('D:/Program Files/超级解霸/副本.bmp');
b[i,j].parent:=form1;
b[i,j].autosize:=true;
b[i,j].top:=x;
x:=x+b[i,j].height;
k:=i*b[i,j].width;
b[i,j].left:=k;
end;
end;
end;
end.
但效果不是我想要的,请问怎么改呢?
看看我是这样写的:
procedure TForm1.FormCreate(Sender: TObject);
var
b:array[0..10,0..10]of Timage;
i,j,x,y,k:integer;
begin
i:=0;
j:=0;
k:=0;
x:=0;
y:=0;
for i:=0 to 3 do
begin
for j:=0 to 3 do
begin
b[i,j]:=Timage.Create(self);
b[i,j].picture.LoadFromFile('D:/Program Files/超级解霸/副本.bmp');
b[i,j].parent:=form1;
b[i,j].autosize:=true;
b[i,j].top:=x;
x:=x+b[i,j].height;
k:=i*b[i,j].width;
b[i,j].left:=k;
end;
end;
end;
end.
但效果不是我想要的,请问怎么改呢?