Skip to content

Commit 3da2b31

Browse files
committed
Adding TCustomScrollBox wrapper
1 parent 3720e6e commit 3da2b31

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

Source/fmx/WrapFmxLayouts.pas

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
interface
44

55
uses
6-
FMX.Layouts, WrapFmxControls, WrapDelphi;
6+
FMX.Layouts, WrapDelphi, WrapFmxControls;
77

88
type
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+
2939
implementation
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);
5869
end;
5970

6071
{ TPyDelphiLayout }
@@ -91,6 +102,24 @@ procedure TPyDelphiScaledLayout.SetDelphiObject(const Value: TScaledLayout);
91102
inherited DelphiObject := Value;
92103
end;
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+
94123
initialization
95124
RegisteredUnits.Add(TLayoutsRegistration.Create);
96125

0 commit comments

Comments
 (0)