@@ -7,7 +7,8 @@ interface
77uses
88 Classes, SysUtils, TypInfo, Types,
99 FMX.Types, FMX.Controls,
10- PythonEngine, WrapDelphi, WrapDelphiClasses, WrapFmxTypes;
10+ PythonEngine, WrapDelphi, WrapDelphiClasses, WrapFmxTypes,
11+ FMX.Controls.Presentation;
1112
1213type
1314 {
@@ -125,6 +126,16 @@ TPyDelphiPopup = class(TPyDelphiStyledControl)
125126 property DelphiObject: TPopup read GetDelphiObject write SetDelphiObject;
126127 end ;
127128
129+ TPyDelphiPresentedControl = class (TPyDelphiStyledControl)
130+ private
131+ function GetDelphiObject : TPresentedControl;
132+ procedure SetDelphiObject (const Value : TPresentedControl);
133+ public
134+ class function DelphiObjectClass : TClass; override;
135+ // Properties
136+ property DelphiObject: TPresentedControl read GetDelphiObject write SetDelphiObject;
137+ end ;
138+
128139implementation
129140
130141type
@@ -711,6 +722,24 @@ procedure TPyDelphiPopup.SetDelphiObject(const Value: TPopup);
711722 inherited DelphiObject := Value ;
712723end ;
713724
725+ { TPyDelphiPresentedControl }
726+
727+ class function TPyDelphiPresentedControl.DelphiObjectClass : TClass;
728+ begin
729+ Result := TPresentedControl;
730+ end ;
731+
732+ function TPyDelphiPresentedControl.GetDelphiObject : TPresentedControl;
733+ begin
734+ Result := TPresentedControl(inherited DelphiObject);
735+ end ;
736+
737+ procedure TPyDelphiPresentedControl.SetDelphiObject (
738+ const Value : TPresentedControl);
739+ begin
740+ inherited DelphiObject := Value ;
741+ end ;
742+
714743initialization
715744 RegisteredUnits.Add(TControlsRegistration.Create);
716745
0 commit comments