Skip to content

Commit 0be1fe2

Browse files
committed
Adding TFramedVertScrollBox wrapper
1 parent 6220122 commit 0be1fe2

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Source/fmx/WrapFmxLayouts.pas

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ TPyDelphiFramedScrollBox = class(TPyDelphiCustomScrollBox)
7676
property DelphiObject: TFramedScrollBox read GetDelphiObject write SetDelphiObject;
7777
end;
7878

79+
TPyDelphiFramedVertScrollBox = class(TPyDelphiVertScrollBox)
80+
private
81+
function GetDelphiObject: TFramedVertScrollBox;
82+
procedure SetDelphiObject(const Value: TFramedVertScrollBox);
83+
public
84+
class function DelphiObjectClass : TClass; override;
85+
// Properties
86+
property DelphiObject: TFramedVertScrollBox read GetDelphiObject write SetDelphiObject;
87+
end;
88+
7989
implementation
8090

8191
{ Register the wrappers, the globals and the constants }
@@ -110,6 +120,7 @@ procedure TLayoutsRegistration.RegisterWrappers(
110120
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiVertScrollBox);
111121
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiHorzScrollBox);
112122
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiFramedScrollBox);
123+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiFramedVertScrollBox);
113124
end;
114125

115126
{ TPyDelphiLayout }
@@ -233,6 +244,24 @@ procedure TPyDelphiFramedScrollBox.SetDelphiObject(
233244
inherited DelphiObject := Value;
234245
end;
235246

247+
{ TPyDelphiFramedVertScrollBox }
248+
249+
class function TPyDelphiFramedVertScrollBox.DelphiObjectClass: TClass;
250+
begin
251+
Result := TFramedVertScrollBox;
252+
end;
253+
254+
function TPyDelphiFramedVertScrollBox.GetDelphiObject: TFramedVertScrollBox;
255+
begin
256+
Result := TFramedVertScrollBox(inherited DelphiObject);
257+
end;
258+
259+
procedure TPyDelphiFramedVertScrollBox.SetDelphiObject(
260+
const Value: TFramedVertScrollBox);
261+
begin
262+
inherited DelphiObject := Value;
263+
end;
264+
236265
initialization
237266
RegisteredUnits.Add(TLayoutsRegistration.Create);
238267

0 commit comments

Comments
 (0)