unit2.pas
来自「Delphi面向对象编程思想附书源码 好用哦!」· PAS 代码 · 共 36 行
PAS
36 行
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons;
type
TForm2 = class(TForm)
CheckBox1: TCheckBox;
RadioButton1: TRadioButton;
BitBtn1: TBitBtn;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
procedure test;
public
{ Public declarations }
end;
implementation
{$R *.dfm}
procedure TForm2.test;
begin
showmessage('测试一个方法');
end;
procedure TForm2.Button1Click(Sender: TObject);
begin
test;
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?