-
-
Notifications
You must be signed in to change notification settings - Fork 122
/
DW.NativeControlModel.pas
41 lines (33 loc) · 1.07 KB
/
DW.NativeControlModel.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
unit DW.NativeControlModel;
{*******************************************************}
{ }
{ Kastri }
{ }
{ Delphi Worlds Cross-Platform Library }
{ }
{ Copyright 2020-2024 Dave Nottage under MIT license }
{ which is located in the root folder of this library }
{ }
{*******************************************************}
interface
uses
// RTL
System.Classes,
// FMX
FMX.Controls.Model;
type
TNativeControlModel = class(TDataModel)
private
FOnLongPress: TNotifyEvent;
public
procedure DoLongPress;
property OnLongPress: TNotifyEvent read FOnLongPress write FOnLongPress;
end;
implementation
{ TNativeControlModel }
procedure TNativeControlModel.DoLongPress;
begin
if Assigned(FOnLongPress) then
FOnLongPress(Self);
end;
end.