📄 about.pas
字号:
unit About;
interface
uses
SysUtils, Windows, Classes, Graphics, Forms,
Controls, Buttons, StdCtrls, ExtCtrls;
type
TAboutBox = class(TForm)
BitBtn1: TBitBtn;
Panel1: TPanel;
Label1: TLabel;
Label2: TLabel;
PaintBox1: TPaintBox;
procedure Label1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
private
{ Private declarations }
public
{ Public declarations }
end;
var
AboutBox: TAboutBox;
implementation
{$R *.DFM}
procedure Delay (Seconds, MilliSec: Word);
var
TimeOut: TDateTime;
begin
TimeOut := Now + EncodeTime (0,
Seconds div 60, Seconds mod 60, MilliSec);
// wait until he TimeOut time
while Now < TimeOut do
Application.ProcessMessages;
end;
procedure TAboutBox.Label1MouseDown(Sender: TObject;
Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
I, LineH: Integer;
begin
if (Button = mbRight) and (ssShift in Shift) then
begin
Panel1.Visible := False;
LineH := PaintBox1.Canvas.TextHeight ('0');
for I := 0 to 100 + LineH * 10 do
with PaintBox1.Canvas do
begin
// empty lines are used to delete descendants
TextOut (40, 100 - I,
'CREDITS example from:');
TextOut (40, 100 + LineH - I,
'"Mastering Delphi"');
TextOut (40, 100 + LineH * 2 - I,
' ');
TextOut (40, 100 + LineH * 4 - I,
'Author: Marco Cant
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -