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

📄 logoscreen.pas

📁 delphi做的进销存系统
💻 PAS
字号:
unit logoscreen;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, jpeg, ExtCtrls, RzButton, Gauges, StdCtrls;

type
  Tlogo = class(TForm)
    img1: TImage;
    RzBitBtn1: TRzBitBtn;
    lblStatus: TLabel;
    Gauge1: TGauge;
    procedure RzBitBtn1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
    procedure RepaintForm;
  public
    { Public declarations }
    procedure BeginLoad;
    procedure EndLoad;
    procedure UpdateLoadStatus(const AStatusText: string; AProgress: Integer);
  end;

var
  logo: Tlogo;

implementation

{$R *.dfm}

procedure Tlogo.BeginLoad;
begin
  lblStatus.Caption := '正在装载……';
  Gauge1.Progress := 0;
  RepaintForm;
end;
procedure Tlogo.EndLoad;
begin
  lblStatus.Caption := '装载完毕';
  Gauge1.Progress := 100;
  RepaintForm;
end;
procedure Tlogo.RepaintForm;
begin
  Show;
  Update;
  Sleep(100); //为了演示,特延长时间。
end;

procedure Tlogo.RzBitBtn1Click(Sender: TObject);
begin
  Close;
end;

procedure Tlogo.UpdateLoadStatus(const AStatusText: string;
  AProgress: Integer);
begin
  lblStatus.Caption := AStatusText;
  Gauge1.Progress := AProgress;
  RepaintForm;
end;

procedure Tlogo.FormCreate(Sender: TObject);
begin
  lblStatus.Caption := '';
  Gauge1.MinValue := 0;
  Gauge1.MaxValue := 100;
end;

end.

⌨️ 快捷键说明

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