Skip to content

Commit 48ecc22

Browse files
committed
Adding TPresentedVertScrollBox wrapper
1 parent 8713f95 commit 48ecc22

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
@@ -36,6 +36,16 @@ TPyDelphiCustomPresentedVertScrollBox = class(TPyDelphiCustomPresentedScrollBo
3636
property DelphiObject: TCustomPresentedVertScrollBox read GetDelphiObject write SetDelphiObject;
3737
end;
3838

39+
TPyDelphiPresentedVertScrollBox = class(TPyDelphiCustomPresentedVertScrollBox)
40+
private
41+
function GetDelphiObject: TPresentedVertScrollBox;
42+
procedure SetDelphiObject(const Value: TPresentedVertScrollBox);
43+
public
44+
class function DelphiObjectClass : TClass; override;
45+
// Properties
46+
property DelphiObject: TPresentedVertScrollBox read GetDelphiObject write SetDelphiObject;
47+
end;
48+
3949
implementation
4050

4151
uses
@@ -69,6 +79,7 @@ procedure TScrollBoxRegistration.RegisterWrappers(
6979
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomPresentedScrollBox);
7080
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPresentedScrollBox);
7181
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomPresentedVertScrollBox);
82+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPresentedVertScrollBox);
7283
end;
7384

7485
{ TPyDelphiCustomPresentedScrollBox }
@@ -125,6 +136,24 @@ procedure TPyDelphiCustomPresentedVertScrollBox.SetDelphiObject(
125136
inherited DelphiObject := Value;
126137
end;
127138

139+
{ TPyDelphiPresentedVertScrollBox }
140+
141+
class function TPyDelphiPresentedVertScrollBox.DelphiObjectClass: TClass;
142+
begin
143+
Result := TPresentedVertScrollBox;
144+
end;
145+
146+
function TPyDelphiPresentedVertScrollBox.GetDelphiObject: TPresentedVertScrollBox;
147+
begin
148+
Result := TPresentedVertScrollBox(inherited DelphiObject);
149+
end;
150+
151+
procedure TPyDelphiPresentedVertScrollBox.SetDelphiObject(
152+
const Value: TPresentedVertScrollBox);
153+
begin
154+
inherited DelphiObject := Value;
155+
end;
156+
128157
initialization
129158
RegisteredUnits.Add(TScrollBoxRegistration.Create);
130159

0 commit comments

Comments
 (0)