Skip to content

Commit f9e31f9

Browse files
committed
Adding TCalloutPanel wrapper
1 parent f3d6f77 commit f9e31f9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Source/fmx/WrapFmxStdCtrls.pas

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ TPyDelphiPanel = class(TPyDelphiPresentedControl)
2929
property DelphiObject: TPanel read GetDelphiObject write SetDelphiObject;
3030
end;
3131

32+
TPyDelphiCalloutPanel = class (TPyDelphiPanel)
33+
private
34+
function GetDelphiObject: TCalloutPanel;
35+
procedure SetDelphiObject(const Value: TCalloutPanel);
36+
public
37+
class function DelphiObjectClass: TClass; override;
38+
// Properties
39+
property DelphiObject: TCalloutPanel read GetDelphiObject write SetDelphiObject;
40+
end;
41+
3242
implementation
3343

3444
{ Register the wrappers, the globals and the constants }
@@ -58,6 +68,7 @@ procedure TStdCtrlsRegistration.RegisterWrappers(
5868
inherited;
5969
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPresentedTextControl);
6070
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPanel);
71+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCalloutPanel);
6172
end;
6273

6374
{ TPyDelphiPresentedTextControl }
@@ -95,6 +106,23 @@ procedure TPyDelphiPanel.SetDelphiObject(const Value: TPanel);
95106
inherited DelphiObject := Value;
96107
end;
97108

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

0 commit comments

Comments
 (0)