Skip to content

Commit 8e18b15

Browse files
committed
Adding TCustomPresentedHorzScrollBox wrapper
1 parent 48ecc22 commit 8e18b15

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Source/fmx/WrapFmxScrollBox.pas

+29
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ TPyDelphiPresentedVertScrollBox = class(TPyDelphiCustomPresentedVertScrollBox)
4646
property DelphiObject: TPresentedVertScrollBox read GetDelphiObject write SetDelphiObject;
4747
end;
4848

49+
TPyDelphiCustomPresentedHorzScrollBox = class(TPyDelphiCustomPresentedScrollBox)
50+
private
51+
function GetDelphiObject: TCustomPresentedHorzScrollBox;
52+
procedure SetDelphiObject(const Value: TCustomPresentedHorzScrollBox);
53+
public
54+
class function DelphiObjectClass : TClass; override;
55+
// Properties
56+
property DelphiObject: TCustomPresentedHorzScrollBox read GetDelphiObject write SetDelphiObject;
57+
end;
58+
4959
implementation
5060

5161
uses
@@ -80,6 +90,7 @@ procedure TScrollBoxRegistration.RegisterWrappers(
8090
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPresentedScrollBox);
8191
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomPresentedVertScrollBox);
8292
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPresentedVertScrollBox);
93+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomPresentedHorzScrollBox);
8394
end;
8495

8596
{ TPyDelphiCustomPresentedScrollBox }
@@ -154,6 +165,24 @@ procedure TPyDelphiPresentedVertScrollBox.SetDelphiObject(
154165
inherited DelphiObject := Value;
155166
end;
156167

168+
{ TPyDelphiCustomPresentedHorzScrollBox }
169+
170+
class function TPyDelphiCustomPresentedHorzScrollBox.DelphiObjectClass: TClass;
171+
begin
172+
Result := TCustomPresentedHorzScrollBox;
173+
end;
174+
175+
function TPyDelphiCustomPresentedHorzScrollBox.GetDelphiObject: TCustomPresentedHorzScrollBox;
176+
begin
177+
Result := TCustomPresentedHorzScrollBox(inherited DelphiObject);
178+
end;
179+
180+
procedure TPyDelphiCustomPresentedHorzScrollBox.SetDelphiObject(
181+
const Value: TCustomPresentedHorzScrollBox);
182+
begin
183+
inherited DelphiObject := Value;
184+
end;
185+
157186
initialization
158187
RegisteredUnits.Add(TScrollBoxRegistration.Create);
159188

0 commit comments

Comments
 (0)