-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathChatFMX.Frame.Attachment.pas
55 lines (43 loc) · 1.12 KB
/
ChatFMX.Frame.Attachment.pas
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
53
54
unit ChatFMX.Frame.Attachment;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
VK.API;
type
TFrameAttachment = class(TFrame)
private
FVK: TCustomVK;
FId: Int64;
procedure SetVK(const Value: TCustomVK);
procedure SetId(const Value: Int64);
protected
FVisibility: Boolean;
public
constructor Create(AOwner: TComponent; AVK: TCustomVK); reintroduce; virtual;
property VK: TCustomVK read FVK write SetVK;
procedure SetVisibility(const Value: Boolean); virtual;
property Id: Int64 read FId write SetId;
end;
implementation
{$R *.fmx}
{ TFrameAttachment }
constructor TFrameAttachment.Create(AOwner: TComponent; AVK: TCustomVK);
begin
inherited Create(AOwner);
FVK := AVK;
Name := '';
end;
procedure TFrameAttachment.SetId(const Value: Int64);
begin
FId := Value;
end;
procedure TFrameAttachment.SetVisibility(const Value: Boolean);
begin
FVisibility := Value;
end;
procedure TFrameAttachment.SetVK(const Value: TCustomVK);
begin
FVK := Value;
end;
end.