monitor.pas
来自「所有delphi的入门例子」· PAS 代码 · 共 41 行
PAS
41 行
unit monitor;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm2 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Button2: TButton;
Button1: TButton;
Label3: TLabel;
Edit1: TEdit;
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
uses comm;
procedure TForm2.Button2Click(Sender: TObject);
begin
//服务器准备好连接
comm.Form1.
IdTCPServer1.DefaultPort := 9925;//StrToIntDef(Edit2.Text, 9925);
if not IdTCPServer1.Active then IdTCPServer1.Active := True;
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?