24-03-2012, 10:57 PM
الحل
كود :
var
i: integer;
SpeedButton: TSpeedButton;
begin
for i := 0 to 89 do
begin
SpeedButton := TSpeedButton.Create(Self);
with SpeedButton do
begin
Parent := Panel1;
Caption := IntToStr(i);
Left := ((i) mod 5) * 25 + 2;
Top := ((i) div 5) * 25 + 2;
Font.Style := [fsBold];
end;
end;
end;
