lazarus/examples/laz_scalable/unit1.pas

47 lines
589 B
ObjectPascal

unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
ButtonHello: TButton;
ButtonClose: TButton;
Memo1: TMemo;
procedure ButtonCloseClick(Sender: TObject);
procedure ButtonHelloClick(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.ButtonHelloClick(Sender: TObject);
begin
Memo1.Append('Hello');
end;
procedure TForm1.ButtonCloseClick(Sender: TObject);
begin
Close;
end;
end.