unit2.pas
来自「一个动画抽奖程序」· PAS 代码 · 共 43 行
PAS
43 行
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Menus, cxLookAndFeelPainters, cxButtons;
type
TForm2 = class(TForm)
Label1: TLabel;
Label2: TLabel;
cxButton1: TcxButton;
procedure cxButton1Click(Sender: TObject);
private
{ Private declarations }
public
procedure ShowLevel(aTitle, aLevelName: string);
{ Public declarations }
end;
var
Form2: TForm2;
implementation
procedure TForm2.ShowLevel(aTitle, aLevelName: string);
begin
Label1.Caption := aTitle;
Label2.Caption := aLevelName;
ShowModal;
end;
{$R *.dfm}
procedure TForm2.cxButton1Click(Sender: TObject);
begin
close;
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?