All pastes #167207 Raw Edit

Stuff

public text v1 · immutable
·published 2006-09-11 19:43 UTC
rendered paste body
unit Unit1; 

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Buttons,
  StdCtrls;

type

  { TForm1 }

  TForm1 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Edit1: TEdit;
    Memo1: TMemo;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end; 

var
  Form1: TForm1; 
  clics: Integer;
implementation

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage('Vous avez clique');
  Memo1.Lines.Add('Clic !');

end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  clics:=clics+1;
  Edit1.Text:=IntToStr(clics);
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  clics:=0;
end;

initialization
  {$I unit1.lrs}

end.