Skip to content

Commit 32b8f0b

Browse files
committed
Adding TPathLabel wrapper
1 parent 8ca479a commit 32b8f0b

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
@@ -319,6 +319,16 @@ TPyDelphiImageControl = class(TPyDelphiStyledControl)
319319
property DelphiObject: TImageControl read GetDelphiObject write SetDelphiObject;
320320
end;
321321

322+
TPyDelphiPathLabel = class(TPyDelphiStyledControl)
323+
private
324+
function GetDelphiObject: TPathLabel;
325+
procedure SetDelphiObject(const Value: TPathLabel);
326+
public
327+
class function DelphiObjectClass: TClass; override;
328+
// Properties
329+
property DelphiObject: TPathLabel read GetDelphiObject write SetDelphiObject;
330+
end;
331+
322332
implementation
323333

324334
{ Register the wrappers, the globals and the constants }
@@ -377,6 +387,7 @@ procedure TStdCtrlsRegistration.RegisterWrappers(
377387
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiExpanderButton);
378388
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiExpander);
379389
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiImageControl);
390+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPathLabel);
380391
end;
381392

382393
{ TPyDelphiPresentedTextControl }
@@ -908,6 +919,23 @@ procedure TPyDelphiImageControl.SetDelphiObject(const Value: TImageControl);
908919
inherited DelphiObject := Value;
909920
end;
910921

922+
{ TPyDelphiPathLabel }
923+
924+
class function TPyDelphiPathLabel.DelphiObjectClass: TClass;
925+
begin
926+
Result := TPathLabel;
927+
end;
928+
929+
function TPyDelphiPathLabel.GetDelphiObject: TPathLabel;
930+
begin
931+
Result := TPathLabel(inherited DelphiObject);
932+
end;
933+
934+
procedure TPyDelphiPathLabel.SetDelphiObject(const Value: TPathLabel);
935+
begin
936+
inherited DelphiObject := Value;
937+
end;
938+
911939
initialization
912940
RegisteredUnits.Add(TStdCtrlsRegistration.Create);
913941

0 commit comments

Comments
 (0)