Skip to content

Commit 760b095

Browse files
committed
Adding TStyleBook wrapper
1 parent 3b4dece commit 760b095

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Source/fmx/WrapFmxControls.pas

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ TPyDelphiTextControl = class(TPyDelphiStyledControl)
105105
property DelphiObject: TTextControl read GetDelphiObject write SetDelphiObject;
106106
end;
107107

108+
TPyDelphiStyleBook = class(TPyDelphiFmxObject)
109+
private
110+
function GetDelphiObject: TStyleBook;
111+
procedure SetDelphiObject(const Value: TStyleBook);
112+
public
113+
class function DelphiObjectClass: TClass; override;
114+
// Properties
115+
property DelphiObject: TStyleBook read GetDelphiObject write SetDelphiObject;
116+
end;
117+
108118
implementation
109119

110120
type
@@ -413,6 +423,7 @@ procedure TControlsRegistration.RegisterWrappers(
413423
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiControl);
414424
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyledControl);
415425
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTextControl);
426+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyleBook);
416427
end;
417428

418429
{ TControlsAccess }
@@ -655,6 +666,23 @@ procedure TPyDelphiTextControl.SetDelphiObject(const Value: TTextControl);
655666
inherited DelphiObject := Value;
656667
end;
657668

669+
{ TPyDelphiStyleBook }
670+
671+
class function TPyDelphiStyleBook.DelphiObjectClass: TClass;
672+
begin
673+
Result := TStyleBook;
674+
end;
675+
676+
function TPyDelphiStyleBook.GetDelphiObject: TStyleBook;
677+
begin
678+
Result := TStyleBook(inherited DelphiObject);
679+
end;
680+
681+
procedure TPyDelphiStyleBook.SetDelphiObject(const Value: TStyleBook);
682+
begin
683+
inherited DelphiObject := Value;
684+
end;
685+
658686
initialization
659687
RegisteredUnits.Add(TControlsRegistration.Create);
660688

0 commit comments

Comments
 (0)