frm_waitdlg.pas

来自「完全操作delphi webbrowser 用於自動登陸某些網站如 雅虎」· PAS 代码 · 共 43 行

PAS
43
字号
unit frm_WaitDlg;

interface

uses
  Windows, SysUtils, jpeg, Classes, Controls, ExtCtrls, Forms;

type
  TfrmWaitDialog = class(TForm)
    Image1: TImage;
    Shape1: TShape;
  private
  public
    procedure ShowDlg;
    procedure CloseWaitDlg;
  end;

var
  frmWaitDialog: TfrmWaitDialog;

implementation

{$R *.DFM}

procedure TfrmWaitDialog.ShowDlg;
begin
     Self.Show;
     SetWindowPos(Self.Handle, HWND_TOPMOST, 0,0,0,0, SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);
     Self.Update;
     Self.BringToFront;
     Application.ProcessMessages;
end;

procedure TfrmWaitDialog.CloseWaitDlg;
begin
     Self.Hide;
end;

initialization
   frmWaitDialog := TfrmWaitDialog.create( Application );

end.

⌨️ 快捷键说明

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