Skip to content

Commit c5130ba

Browse files
committed
Adding TMultiView wrapper
1 parent 29a563e commit c5130ba

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Source/fmx/WrapFmxComCtrls.pas

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ TPyDelphiCustomMultiView = class(TPyDelphiPresentedControl)
2626
property DelphiObject: TCustomMultiView read GetDelphiObject write SetDelphiObject;
2727
end;
2828

29+
TPyDelphiMultiView = class(TPyDelphiCustomMultiView)
30+
private
31+
function GetDelphiObject: TMultiView;
32+
procedure SetDelphiObject(const Value: TMultiView);
33+
public
34+
class function DelphiObjectClass: TClass; override;
35+
// Properties
36+
property DelphiObject: TMultiView read GetDelphiObject write SetDelphiObject;
37+
end;
38+
2939
implementation
3040

3141
uses
@@ -58,6 +68,7 @@ procedure TComCtrlsRegistration.RegisterWrappers(
5868
inherited;
5969
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTabControl);
6070
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomMultiView);
71+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiMultiView);
6172
end;
6273

6374
{ TPyDelphiTabControl }
@@ -95,6 +106,23 @@ procedure TPyDelphiCustomMultiView.SetDelphiObject(
95106
inherited DelphiObject := Value;
96107
end;
97108

109+
{ TPyDelphiMultiView }
110+
111+
class function TPyDelphiMultiView.DelphiObjectClass: TClass;
112+
begin
113+
Result := TMultiView;
114+
end;
115+
116+
function TPyDelphiMultiView.GetDelphiObject: TMultiView;
117+
begin
118+
Result := TMultiView(inherited DelphiObject);
119+
end;
120+
121+
procedure TPyDelphiMultiView.SetDelphiObject(const Value: TMultiView);
122+
begin
123+
inherited DelphiObject := Value;
124+
end;
125+
98126
initialization
99127
RegisteredUnits.Add( TComCtrlsRegistration.Create );
100128

0 commit comments

Comments
 (0)