Информатика. Программирование в Delphi
158
Листинг 11.1
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dia-
logs, ExtCtrls;
type
TForm1 = class(TForm)
Timer1: TTimer;
procedure FormCreate(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
procedure Vector(x0,y0,a,l:integer);
const
r=75;
gr=pi/180;
var
Form1: TForm1;
x0,y0:integer;
ahr,amin,asec:integer;
t:TDateTime;
implementation
uses DateUtils;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Form1.Caption:='Время';
Form1.BorderStyle:=bsDialog;
Form1.Color:=clBlack;
Form1.ClientHeight:=(r+30)*2;
Form1.ClientWidth:=(r+30)*2;
x0:=r+30;
I...,148,149,150,151,152,153,154,155,156,157 159,160,161,162,163,164,165,166,167,168,...370