
24.02.2013, 05:59
|
 |
LMD-DML
|
|
Регистрация: 12.07.2009
Адрес: Богородское
Сообщения: 3,025
Версия Delphi: D7E
Репутация: 1834
|
|
Код:
var
pBar: integer = 1;
flg : boolean = false;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if flg then
begin
Inc(pBar);
flg:= false;
end;
with (FindComponent('ProgressBar' + IntToStr(pBar)) as TProgressBar) do
begin
Position:= Position + 1;
if (Position >= 100) and (pBar <= 11) then flg:= true;
if (pBar >= 11) and (Position >= 100) then Timer1.Enabled:= False;
end;
end;
|