📄 testapp.pas
字号:
unit testapp;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, AutoUpdate;
type
TForm1 = class(TForm)
AutoUpdate1: TAutoUpdate;
Button1: TButton;
Memo1: TMemo;
Label1: TLabel;
procedure Button1Click(Sender: TObject);
procedure AutoUpdate1DebugMethod(S: String);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
AutoUpdate1.CheckForUpgrade(True);
end;
procedure TForm1.AutoUpdate1DebugMethod(S: String);
begin
memo1.lines.add(s);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Label1.Caption := AutoUpdate1.Version;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -