progress.pas

来自「PAK PAK PAK PAK PAK PAK PAK PAK」· PAS 代码 · 共 41 行

PAS
41 行
字号
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 + =
减小字号Ctrl + -
显示快捷键?