📄 main.pas
字号:
unit Main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Edit1: TEdit;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses DeviceTypeDialog;
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
l_DeviceTypeDlg: TDeviceTypeDlg;
begin
l_DeviceTypeDlg:= TDeviceTypeDlg.Create(nil);
try
if not l_DeviceTypeDlg.Execute then exit;
case l_DeviceTypeDlg.DeviceType of
dtHDR: Edit1.Text := '硬盘录像机';
dtPTL: Edit1.Text := '云台';
dtPTLController: Edit1.Text := '云台控制器';
else
Edit1.Text := '无效设备';
end;
finally
l_DeviceTypeDlg.Free;
end;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -