unit Uhr;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TForm1 =
class(TForm)
Winkel: TEdit;
Strich: TButton;
Reset: TButton;
PaintBox1: TPaintBox;
procedure PaintBox1Paint(Sender: TObject);
procedure ResetClick(Sender: TObject);
procedure StrichClick(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
i : integer;
implementation
{$R *.dfm}
procedure TForm1.PaintBox1Paint(Sender: TObject);
begin
canvas.Ellipse(100,100,400,400);
end;
procedure TForm1.ResetClick(Sender: TObject);
begin
paintbox1.Repaint
end;
procedure TForm1.StrichClick(Sender: TObject);
var i : integer ;
begin
canvas.MoveTo(250,250);
canvas.lineto(250,100);
i := StrToInt(Winkel.Text) ;
end;
end.