33interface
44
55uses
6- FMX.Layouts, WrapFmxControls, WrapDelphi ;
6+ FMX.Layouts, WrapDelphi, WrapFmxControls ;
77
88type
99 TPyDelphiLayout = class (TPyDelphiControl)
@@ -26,6 +26,16 @@ TPyDelphiScaledLayout = class(TPyDelphiControl)
2626 property DelphiObject: TScaledLayout read GetDelphiObject write SetDelphiObject;
2727 end ;
2828
29+ TPyDelphiCustomScrollBox = class (TPyDelphiStyledControl)
30+ private
31+ function GetDelphiObject : TCustomScrollBox;
32+ procedure SetDelphiObject (const Value : TCustomScrollBox);
33+ public
34+ class function DelphiObjectClass : TClass; override;
35+ // Properties
36+ property DelphiObject: TCustomScrollBox read GetDelphiObject write SetDelphiObject;
37+ end ;
38+
2939implementation
3040
3141{ Register the wrappers, the globals and the constants }
@@ -55,6 +65,7 @@ procedure TLayoutsRegistration.RegisterWrappers(
5565 inherited ;
5666 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiLayout);
5767 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiScaledLayout);
68+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomScrollBox);
5869end ;
5970
6071{ TPyDelphiLayout }
@@ -91,6 +102,24 @@ procedure TPyDelphiScaledLayout.SetDelphiObject(const Value: TScaledLayout);
91102 inherited DelphiObject := Value ;
92103end ;
93104
105+ { TPyDelphiCustomScrollBox }
106+
107+ class function TPyDelphiCustomScrollBox.DelphiObjectClass : TClass;
108+ begin
109+ Result := TCustomScrollBox;
110+ end ;
111+
112+ function TPyDelphiCustomScrollBox.GetDelphiObject : TCustomScrollBox;
113+ begin
114+ Result := TCustomScrollBox(inherited DelphiObject);
115+ end ;
116+
117+ procedure TPyDelphiCustomScrollBox.SetDelphiObject (
118+ const Value : TCustomScrollBox);
119+ begin
120+ inherited DelphiObject := Value ;
121+ end ;
122+
94123initialization
95124 RegisteredUnits.Add(TLayoutsRegistration.Create);
96125
0 commit comments