-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSourceForm.pas
More file actions
52 lines (42 loc) · 1.03 KB
/
Copy pathSourceForm.pas
File metadata and controls
52 lines (42 loc) · 1.03 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
unit SourceForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
Base, FMX.Controls.Presentation, FMX.Objects, Log;
type
TfrmSource = class(TfrmBase)
lblFrequencyError: TLabel;
lblPacketInfo: TLabel;
lblValue: TLabel;
lblRSSI: TLabel;
Rectangle5: TRectangle;
lblCaption: TLabel;
rectMain: TRectangle;
lblLog: TLabel;
procedure FormCreate(Sender: TObject);
procedure lblLogClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
frmLog: TfrmLog;
procedure WriteToLog(Msg: String);
end;
implementation
uses Main;
{$R *.fmx}
procedure TfrmSource.FormCreate(Sender: TObject);
begin
inherited;
frmLog := TfrmLog.Create(Self);
end;
procedure TfrmSource.lblLogClick(Sender: TObject);
begin
frmMain.LoadForm(nil, frmLog);
end;
procedure TfrmSource.WriteToLog(Msg: String);
begin
frmLog.WriteToLog(Msg);
end;
end.