?? untmain.pas
字號:
unit UntMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Buttons, ExtCtrls, StdCtrls, jpeg;
type
TForm1 = class(TForm)
SpeedButton1: TSpeedButton;
Timer1: TTimer;
Label1: TLabel;
Timer2: TTimer;
GroupBox1: TGroupBox;
Label2: TLabel;
SpeedButton2: TSpeedButton;
Label3: TLabel;
Image1: TImage;
procedure SpeedButton1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure Timer2Timer(Sender: TObject);
procedure SpeedButton2Click(Sender: TObject);
private
{ Private declarations }
count: Integer;
public
{ Public declarations }
end;
const
COUNT_MAX = 60;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.SpeedButton1Click(Sender: TObject);
begin
Hide;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Hide;
GroupBox1.Left := Round((Form1.Width - GroupBox1.Width)/2);
GroupBox1.Top := Round((Form1.Height - GroupBox1.Height)/2);
Timer1.Enabled := False;
end;
procedure TForm1.Timer2Timer(Sender: TObject);
begin
count := count + 1;
if count = COUNT_MAX then begin
count := 0;
Show;
end;
end;
procedure TForm1.SpeedButton2Click(Sender: TObject);
begin
close;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -