@@ -6,9 +6,8 @@ interface
6
6
7
7
uses
8
8
Classes, SysUtils, TypInfo, Types,
9
- FMX.Types, FMX.Controls,
10
- PythonEngine, WrapDelphi, WrapDelphiClasses, WrapFmxTypes,
11
- FMX.Controls.Presentation;
9
+ FMX.Types, FMX.Controls, FMX.Controls.Presentation,
10
+ PythonEngine, WrapDelphi, WrapDelphiClasses, WrapFmxTypes, WrapFmxActnList;
12
11
13
12
type
14
13
{
@@ -136,6 +135,17 @@ TPyDelphiPresentedControl = class(TPyDelphiStyledControl)
136
135
property DelphiObject: TPresentedControl read GetDelphiObject write SetDelphiObject;
137
136
end ;
138
137
138
+ TPyDelphiCustomControlAction = class (TPyDelphiCustomAction)
139
+ private
140
+ function GetDelphiObject : TCustomControlAction;
141
+ procedure SetDelphiObject (const Value : TCustomControlAction);
142
+ public
143
+ class function DelphiObjectClass : TClass; override;
144
+ public
145
+ property DelphiObject: TCustomControlAction read GetDelphiObject
146
+ write SetDelphiObject;
147
+ end ;
148
+
139
149
implementation
140
150
141
151
type
@@ -147,6 +157,30 @@ TControlsRegistration = class(TRegisteredUnit)
147
157
procedure DefineVars (APyDelphiWrapper : TPyDelphiWrapper); override;
148
158
end ;
149
159
160
+ { TControlsRegistration }
161
+
162
+ procedure TControlsRegistration.DefineVars (APyDelphiWrapper: TPyDelphiWrapper);
163
+ begin
164
+ inherited ;
165
+ end ;
166
+
167
+ function TControlsRegistration.Name : string;
168
+ begin
169
+ Result := ' Controls' ;
170
+ end ;
171
+
172
+ procedure TControlsRegistration.RegisterWrappers (
173
+ APyDelphiWrapper: TPyDelphiWrapper);
174
+ begin
175
+ inherited ;
176
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiControl);
177
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyledControl);
178
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTextControl);
179
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyleBook);
180
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPopup);
181
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomControlAction);
182
+ end ;
183
+
150
184
{ TPyDelphiControl }
151
185
152
186
function TPyDelphiControl.BringToFront_Wrapper (args: PPyObject): PPyObject;
@@ -425,29 +459,6 @@ function TPyDelphiControl.Set_Visible(AValue: PPyObject;
425
459
Result := -1 ;
426
460
end ;
427
461
428
- { TControlsRegistration }
429
-
430
- procedure TControlsRegistration.DefineVars (APyDelphiWrapper: TPyDelphiWrapper);
431
- begin
432
- inherited ;
433
- end ;
434
-
435
- function TControlsRegistration.Name : string;
436
- begin
437
- Result := ' Controls' ;
438
- end ;
439
-
440
- procedure TControlsRegistration.RegisterWrappers (
441
- APyDelphiWrapper: TPyDelphiWrapper);
442
- begin
443
- inherited ;
444
- APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiControl);
445
- APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyledControl);
446
- APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTextControl);
447
- APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyleBook);
448
- APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPopup);
449
- end ;
450
-
451
462
{ TControlsAccess }
452
463
453
464
class function TControlsAccess.ExpectedContainerClass : TClass;
@@ -740,6 +751,24 @@ procedure TPyDelphiPresentedControl.SetDelphiObject(
740
751
inherited DelphiObject := Value ;
741
752
end ;
742
753
754
+ { TPyDelphiCustomControlAction }
755
+
756
+ class function TPyDelphiCustomControlAction.DelphiObjectClass : TClass;
757
+ begin
758
+ Result := TCustomControlAction;
759
+ end ;
760
+
761
+ function TPyDelphiCustomControlAction.GetDelphiObject : TCustomControlAction;
762
+ begin
763
+ Result := TCustomControlAction(inherited DelphiObject);
764
+ end ;
765
+
766
+ procedure TPyDelphiCustomControlAction.SetDelphiObject (
767
+ const Value : TCustomControlAction);
768
+ begin
769
+ inherited DelphiObject := Value ;
770
+ end ;
771
+
743
772
initialization
744
773
RegisteredUnits.Add(TControlsRegistration.Create);
745
774
0 commit comments