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

📄 logindlg.pas

📁 一个很不错的系统信息控件
💻 PAS
字号:
unit LoginDlg;

interface

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

type
  Tdlg_wmie_Login = class(TForm)
    Label1: TLabel;
    eMachine: TEdit;
    Label2: TLabel;
    eUser: TEdit;
    Label3: TLabel;
    ePwd: TEdit;
    Label4: TLabel;
    cbRoot: TComboBox;
    bOK: TButton;
    bCancel: TButton;
    Bevel1: TBevel;
  private
  public
  end;

function ShowLoginDlg(var AMachine,AUser,APwd,ARoot: string): Boolean;

var
  dlg_wmie_Login: Tdlg_wmie_Login;

implementation

{$R *.dfm}

function ShowLoginDlg;
begin
  with Tdlg_wmie_Login.Create(Application.MainForm) do
    try
      Result:=ShowModal=mrOK;
      if Result then begin
        AMachine:=eMachine.Text;
        AUser:=eUser.Text;
        APwd:=ePwd.Text;
        ARoot:=cbRoot.Text;
      end;
    finally
      Free;
    end;
end;


end.

⌨️ 快捷键说明

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