procedure TForm1.BitBtn1Click(Sender: TObject);
var ff:tprogressbar;
i:integer;
begin
ff:=tprogressbar.Create(form1);
ff.Visible:=true;
ff.Parent:=form1;
ff.Orientation:=pbHorizontal;
ff.Min:=0;
ff.Max:=200;
ff.Left:=200;
ff.Top:=200;
ff.Width:=200;
ff.Height:=16;
for i:=0 to 200 do
begin
ff.StepIt;
if ff.Position=199 then //为让你看到效果
ff.free;
end;
end;