beProgressFrm.pas 718 B

12345678910111213141516171819202122232425262728293031323334353637
  1. unit beProgressFrm;
  2. interface
  3. uses
  4. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5. Dialogs, ExtCtrls, StdCtrls;
  6. type
  7. TfrmProgressor = class(TForm)
  8. private
  9. { Private declarations }
  10. public
  11. procedure SetMax(aMax: Integer);
  12. procedure AddStep(aStep: Integer; const aText: string = '');
  13. end;
  14. implementation
  15. {$R *.dfm}
  16. { TfrmProgressor }
  17. procedure TfrmProgressor.AddStep(aStep: Integer; const aText: string);
  18. begin
  19. // cpbProgress.Position := cpbProgress.Position + aStep;
  20. // lbeHint.Caption := aText;
  21. // Application.ProcessMessages;
  22. end;
  23. procedure TfrmProgressor.SetMax(aMax: Integer);
  24. begin
  25. // cpbProgress.Position := 0;
  26. // cpbProgress.Max := aMax;
  27. end;
  28. end.