📄 u_about.~pas
字号:
unit U_About;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls,Dialogs, jpeg;
type
TF_About = class(TForm)
Panel1: TPanel;
ProgramIcon: TImage;
ProductName: TLabel;
Version: TLabel;
Copyright: TLabel;
BitBtn_About: TBitBtn;
Bevel1: TBevel;
lblOs: TLabel;
lblMemory: TLabel;
Panel2: TPanel;
Image1: TImage;
Others: TLabel;
Author: TLabel;
Bevel2: TBevel;
Label1: TLabel;
procedure FormCreate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure BitBtn_AboutClick(Sender: TObject);
private
{ Private declarations }
s:string;
procedure GetOSInfo; //系统信息程序
Procedure GetMemoryInfo ; //可用资源程序
public
{ Public declarations }
end;
var
F_About: TF_About;
const
ver='Endo 毕业设计';
implementation
{$R *.DFM}
Procedure TF_About.GetMemoryInfo ;//可用资源
var
MS: TMemoryStatus;
begin
MS.dwLength:=SizeOf(TMemoryStatus);
GlobalMemoryStatus(MS);
lblMemory.Caption:=lblMemory.Caption +FormatFloat('#,###" KB"',MS.dwTotalPhys div 1024);
end;
procedure TF_About.GetOSInfo; //获取系统信息
var
Platform: string;
BuildNumber: Integer;
begin
case Win32Platform of
VER_PLATFORM_WIN32_WINDOWS:
begin
Platform := 'Windows 95';
BuildNumber := Win32BuildNumber and $0000FFFF;
end;
VER_PLATFORM_WIN32_NT:
begin
Platform := 'Windows NT';
BuildNumber := Win32BuildNumber;
end;
else
begin
Platform := 'Windows';
BuildNumber := 0;
end;
end;
if(Win32Platform = VER_PLATFORM_WIN32_WINDOWS)
or(Win32Platform = VER_PLATFORM_WIN32_NT) then
begin
if Win32CSDVersion = ''
then lblOS.Caption := lblOS.Caption+Format('%s%s %d.%d (Build %d)',[Platform,#13,Win32MajorVersion,Win32MinorVersion,BuildNumber])
else lblOS.Caption := lblOS.Caption+Format('%s%s %d.%d (Build %d: %s)',[Platform,#13,Win32MajorVersion,Win32MinorVersion, BuildNumber,Win32CSDVersion]);
end else lblOS.Caption := lblOS.Caption+Format('%s%s %d.%d', [Platform,#13,Win32MajorVersion,Win32MinorVersion])
end;
procedure TF_About.FormCreate(Sender: TObject);
begin
try
// Caption:='关于 '+application.Title;
ProgramIcon.Picture.icon:=Application.Icon;
ProductName.Caption:=ProductName.Caption+Application.Title+' 数据库';
version.Caption:=version.Caption+ver;
Copyright.Caption:=Copyright.Caption+'Endo 科技';
Author.Caption:=Author.Caption+'Endo';
Others.Caption:='系统在运行过程中出现的任何问题希望你能与Endo 联系!QQ:18978970 Email:0809601@163.com 。'+#13+#13+
'程序运行于Win98~Win2003,WinXP,需 SQLserver 2000支持!';
//初始化---------------------------
GetMemoryInfo;
GetOsinfo;
{***********************}
//初始化变量s...
s:='';
except
MessageBox(handle,'某些信息不能取得','提示',MB_OK);
end;
end;
procedure TF_About.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action:=caFree;
end;
procedure TF_About.BitBtn_AboutClick(Sender: TObject);
begin
Close;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -