Skip to content

Commit 0a99442

Browse files
committed
Adding TPresentedScrollBox wrapper
1 parent 732261a commit 0a99442

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Source/fmx/WrapFmxScrollBox.pas

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ TPyDelphiCustomPresentedScrollBox = class(TPyDelphiPresentedControl)
1616
property DelphiObject: TCustomPresentedScrollBox read GetDelphiObject write SetDelphiObject;
1717
end;
1818

19+
TPyDelphiPresentedScrollBox = class(TPyDelphiCustomPresentedScrollBox)
20+
private
21+
function GetDelphiObject: TPresentedScrollBox;
22+
procedure SetDelphiObject(const Value: TPresentedScrollBox);
23+
public
24+
class function DelphiObjectClass : TClass; override;
25+
// Properties
26+
property DelphiObject: TPresentedScrollBox read GetDelphiObject write SetDelphiObject;
27+
end;
28+
1929
implementation
2030

2131
uses
@@ -47,6 +57,7 @@ procedure TScrollBoxRegistration.RegisterWrappers(
4757
begin
4858
inherited;
4959
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomPresentedScrollBox);
60+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPresentedScrollBox);
5061
end;
5162

5263
{ TPyDelphiCustomPresentedScrollBox }
@@ -67,6 +78,24 @@ procedure TPyDelphiCustomPresentedScrollBox.SetDelphiObject(
6778
inherited DelphiObject := Value;
6879
end;
6980

81+
{ TPyDelphiPresentedScrollBox }
82+
83+
class function TPyDelphiPresentedScrollBox.DelphiObjectClass: TClass;
84+
begin
85+
Result := TPresentedScrollBox;
86+
end;
87+
88+
function TPyDelphiPresentedScrollBox.GetDelphiObject: TPresentedScrollBox;
89+
begin
90+
Result := TPresentedScrollBox(inherited DelphiObject);
91+
end;
92+
93+
procedure TPyDelphiPresentedScrollBox.SetDelphiObject(
94+
const Value: TPresentedScrollBox);
95+
begin
96+
inherited DelphiObject := Value;
97+
end;
98+
7099
initialization
71100
RegisteredUnits.Add(TScrollBoxRegistration.Create);
72101

0 commit comments

Comments
 (0)