Skip to content

Commit bdc5671

Browse files
committed
Adding TVertScrollBox wrapper
1 parent 3da2b31 commit bdc5671

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

Source/fmx/WrapFmxLayouts.pas

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,26 @@ TPyDelphiCustomScrollBox = class(TPyDelphiStyledControl)
3636
property DelphiObject: TCustomScrollBox read GetDelphiObject write SetDelphiObject;
3737
end;
3838

39+
TPyDelphiScrollBox = class(TPyDelphiCustomScrollBox)
40+
private
41+
function GetDelphiObject: TScrollBox;
42+
procedure SetDelphiObject(const Value: TScrollBox);
43+
public
44+
class function DelphiObjectClass : TClass; override;
45+
// Properties
46+
property DelphiObject: TScrollBox read GetDelphiObject write SetDelphiObject;
47+
end;
48+
49+
TPyDelphiVertScrollBox = class(TPyDelphiCustomScrollBox)
50+
private
51+
function GetDelphiObject: TVertScrollBox;
52+
procedure SetDelphiObject(const Value: TVertScrollBox);
53+
public
54+
class function DelphiObjectClass : TClass; override;
55+
// Properties
56+
property DelphiObject: TVertScrollBox read GetDelphiObject write SetDelphiObject;
57+
end;
58+
3959
implementation
4060

4161
{ Register the wrappers, the globals and the constants }
@@ -66,6 +86,8 @@ procedure TLayoutsRegistration.RegisterWrappers(
6686
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiLayout);
6787
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiScaledLayout);
6888
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomScrollBox);
89+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiScrollBox);
90+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiVertScrollBox);
6991
end;
7092

7193
{ TPyDelphiLayout }
@@ -120,6 +142,40 @@ procedure TPyDelphiCustomScrollBox.SetDelphiObject(
120142
inherited DelphiObject := Value;
121143
end;
122144

145+
{ TPyDelphiScrollBox }
146+
147+
class function TPyDelphiScrollBox.DelphiObjectClass: TClass;
148+
begin
149+
Result := TScrollBox;
150+
end;
151+
152+
function TPyDelphiScrollBox.GetDelphiObject: TScrollBox;
153+
begin
154+
Result := TScrollBox(inherited DelphiObject);
155+
end;
156+
157+
procedure TPyDelphiScrollBox.SetDelphiObject(const Value: TScrollBox);
158+
begin
159+
inherited DelphiObject := Value;
160+
end;
161+
162+
{ TPyDelphiVertScrollBox }
163+
164+
class function TPyDelphiVertScrollBox.DelphiObjectClass: TClass;
165+
begin
166+
Result := TVertScrollBox;
167+
end;
168+
169+
function TPyDelphiVertScrollBox.GetDelphiObject: TVertScrollBox;
170+
begin
171+
Result := TVertScrollBox(inherited DelphiObject);
172+
end;
173+
174+
procedure TPyDelphiVertScrollBox.SetDelphiObject(const Value: TVertScrollBox);
175+
begin
176+
inherited DelphiObject := Value;
177+
end;
178+
123179
initialization
124180
RegisteredUnits.Add(TLayoutsRegistration.Create);
125181

0 commit comments

Comments
 (0)