新开一个project,然后拖两个Button放在窗体上
代码如下:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
btnAddButton: TButton;
btnDeleteLast: TButton;
procedure btnAddButtonClick(Sender: TObject);
procedure btnDeleteLastClick(Sender: TObject);
private
{ Private declarations }
procedure CustomButtonClick(Sender: TObject);
public
...[ 查看全文 ]