📄 mainfrm.~pas
字号:
unit MainFrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ShellAPI;
type
TMainForm = class(TForm)
Label2: TLabel;
Label1: TLabel;
Label3: TLabel;
Label4: TLabel;
WindowsLabel: TLabel;
SystemLabel: TLabel;
ApplicationLabel: TLabel;
TempLabel: TLabel;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MainForm: TMainForm;
implementation
{$R *.dfm}
procedure TMainForm.FormCreate(Sender: TObject);
var Dir:Array[0..255] of char;
begin
GetWindowsDirectory(Dir,SizeOf(Dir));
WindowsLabel.Caption:=StrPas(Dir);
GetSystemDirectory(Dir,SizeOf(Dir));
SystemLabel.Caption:=StrPas(Dir);
GetTempPath(SizeOf(Dir),Dir);
TempLabel.Caption:=StrPas(Dir);
GetCurrentDirectory(SizeOf(Dir),Dir);
ApplicationLabel.Caption:=StrPas(Dir);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -