Skip to content

Commit cd59093

Browse files
authored
Merge pull request #251 from Embarcadero/stdctrlswrappers
Stdctrls wrappers
2 parents 55d3a8d + 32b8f0b commit cd59093

File tree

2 files changed

+972
-1
lines changed

2 files changed

+972
-1
lines changed

Source/fmx/WrapFmxControls.pas

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ interface
77
uses
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

1213
type
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+
128139
implementation
129140

130141
type
@@ -711,6 +722,24 @@ procedure TPyDelphiPopup.SetDelphiObject(const Value: TPopup);
711722
inherited DelphiObject := Value;
712723
end;
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+
714743
initialization
715744
RegisteredUnits.Add(TControlsRegistration.Create);
716745

0 commit comments

Comments
 (0)