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

📄 mainunit.pas

📁 Delphi编写的通讯录
💻 PAS
字号:
unit MainUnit;

interface

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

type
  TAboutForm = class(TForm)
    Label1: TLabel;
    Image1: TImage;
    SpeedButton1: TSpeedButton;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    procedure FormShow(Sender: TObject);
    procedure SpeedButton1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  AboutForm: TAboutForm;

implementation

uses LoginUnit, AboutUnit;

{$R *.dfm}

procedure TAboutForm.FormShow(Sender: TObject);
Var
  MemInfo:MEMORYSTATUS;
  s:integer;
begin
  MemInfo.dwLength:=sizeof(MEMORYSTATUS);
  GlobalMemoryStatus(MemInfo);
  s:=meminfo.dwTotalPhys div 1024;
  label1.Caption:='WINDOWS 的可用物理内存共有:    '+inttostr(s)+' KB';

end;

procedure TAboutForm.SpeedButton1Click(Sender: TObject);
begin
  Aboutform.Close;
end;

end.

⌨️ 快捷键说明

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