Skip to content

Commit 0655048

Browse files
committed
Adding TPopup wrapper
1 parent 760b095 commit 0655048

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Source/fmx/WrapFmxControls.pas

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,16 @@ TPyDelphiStyleBook = class(TPyDelphiFmxObject)
115115
property DelphiObject: TStyleBook read GetDelphiObject write SetDelphiObject;
116116
end;
117117

118+
TPyDelphiPopup = class(TPyDelphiStyledControl)
119+
private
120+
function GetDelphiObject: TPopup;
121+
procedure SetDelphiObject(const Value: TPopup);
122+
public
123+
class function DelphiObjectClass: TClass; override;
124+
// Properties
125+
property DelphiObject: TPopup read GetDelphiObject write SetDelphiObject;
126+
end;
127+
118128
implementation
119129

120130
type
@@ -683,6 +693,23 @@ procedure TPyDelphiStyleBook.SetDelphiObject(const Value: TStyleBook);
683693
inherited DelphiObject := Value;
684694
end;
685695

696+
{ TPyDelphiPopup }
697+
698+
class function TPyDelphiPopup.DelphiObjectClass: TClass;
699+
begin
700+
Result := TPopup;
701+
end;
702+
703+
function TPyDelphiPopup.GetDelphiObject: TPopup;
704+
begin
705+
Result := TPopup(inherited DelphiObject);
706+
end;
707+
708+
procedure TPyDelphiPopup.SetDelphiObject(const Value: TPopup);
709+
begin
710+
inherited DelphiObject := Value;
711+
end;
712+
686713
initialization
687714
RegisteredUnits.Add(TControlsRegistration.Create);
688715

0 commit comments

Comments
 (0)