📄 unit1.pas
字号:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,ExtCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
GroupBox1: TGroupBox;
Label6: TLabel;
lbClientCount: TLabel;
Label8: TLabel;
lbQueryCount: TLabel;
private
{ Private declarations }
FQueryCount:Integer;
FClientCount:Integer;
public
{ Public declarations }
procedure UpdateClientCount(Incr:Integer);
procedure incQueryCount;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.UpdateClientCount(Incr:Integer);
begin
FClientCount:=FClientCount+incr;
lbClientCount.Caption:=IntToStr(FClientCount);
end;
procedure TForm1.incQueryCount;
begin
Inc(FQueryCount);
lbQueryCount.Caption:=IntToStr(FQueryCount);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -