Skip to content

Commit b720526

Browse files
committed
Adding TPresentedFramedScrollBox wrapper
1 parent e59171a commit b720526

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
@@ -76,6 +76,16 @@ TPyDelphiCustomPresentedFrameScrollBox = class(TPyDelphiCustomPresentedScrollB
7676
property DelphiObject: TCustomPresentedFramedScrollBox read GetDelphiObject write SetDelphiObject;
7777
end;
7878

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

8191
uses
@@ -113,6 +123,7 @@ procedure TScrollBoxRegistration.RegisterWrappers(
113123
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomPresentedHorzScrollBox);
114124
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPresentedHorzScrollBox);
115125
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomPresentedFrameScrollBox);
126+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPresentedFrameScrollBox);
116127
end;
117128

118129
{ TPyDelphiCustomPresentedScrollBox }
@@ -241,6 +252,24 @@ procedure TPyDelphiCustomPresentedFrameScrollBox.SetDelphiObject(
241252
inherited DelphiObject := Value;
242253
end;
243254

255+
{ TPyDelphiPresentedFrameScrollBox }
256+
257+
class function TPyDelphiPresentedFrameScrollBox.DelphiObjectClass: TClass;
258+
begin
259+
Result := TPresentedFramedScrollBox;
260+
end;
261+
262+
function TPyDelphiPresentedFrameScrollBox.GetDelphiObject: TPresentedFramedScrollBox;
263+
begin
264+
Result := TPresentedFramedScrollBox(inherited DelphiObject);
265+
end;
266+
267+
procedure TPyDelphiPresentedFrameScrollBox.SetDelphiObject(
268+
const Value: TPresentedFramedScrollBox);
269+
begin
270+
inherited DelphiObject := Value;
271+
end;
272+
244273
initialization
245274
RegisteredUnits.Add(TScrollBoxRegistration.Create);
246275

0 commit comments

Comments
 (0)