
14.03.2008, 12:17
|
Специалист
|
|
Регистрация: 07.05.2007
Адрес: Москва
Сообщения: 884
Репутация: 21699
|
|
Установки StaticText1:
Caption = 00:00:00
Font.Color = clBlue
Font.Size = 30
Font.Name = Arial Unicode MS
Код:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls;
type
TForm1 = class(TForm)
StaticText1: TStaticText;
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
begin
StaticText1.Caption:= TimeToStr(Time);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
StaticText1.Caption:= TimeToStr(Time);
end;
end.
|