⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 progress.pas

📁 PAK PAK PAK PAK PAK PAK PAK PAK
💻 PAS
字号:
unit progress;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, ExtCtrls, ComCtrls;

type
  TprogressForm = class(TForm)
    ProgressBar1: TProgressBar;
  private
    { Private declarations }
  public
    procedure initValues(maxvalue: integer);
    procedure updateValues(value: integer);
    { Public declarations }
  end;

var
  progressForm: TprogressForm;

implementation

{$R *.DFM}

{ TprogressForm }

procedure TprogressForm.initValues(maxvalue: integer);
begin
  progressbar1.Max := maxvalue;
  progressbar1.Position := 0;
end;

procedure TprogressForm.updateValues(value: integer);
begin
  progressbar1.Position := value;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -