-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainLeftForm.pas
More file actions
38 lines (29 loc) · 784 Bytes
/
MainLeftForm.pas
File metadata and controls
38 lines (29 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
unit MainLeftForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls;
type
TfrmMainLeft = class(TForm)
lblClock: TLabel;
tmrNow: TTimer;
procedure tmrNowTimer(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmMainLeft: TfrmMainLeft;
implementation
{$R *.dfm}
procedure TfrmMainLeft.FormClose(Sender: TObject; var Action: TCloseAction);
begin
action := cafree
end;
procedure TfrmMainLeft.tmrNowTimer(Sender: TObject);
begin
lblClock.Caption := FormatDateTime('yyyy-mm-dd, HH:MM:SS', Now);
end;
end.