File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff 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+
108118implementation
109119
110120type
@@ -413,6 +423,7 @@ procedure TControlsRegistration.RegisterWrappers(
413423 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiControl);
414424 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyledControl);
415425 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTextControl);
426+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyleBook);
416427end ;
417428
418429{ TControlsAccess }
@@ -655,6 +666,23 @@ procedure TPyDelphiTextControl.SetDelphiObject(const Value: TTextControl);
655666 inherited DelphiObject := Value ;
656667end ;
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+
658686initialization
659687 RegisteredUnits.Add(TControlsRegistration.Create);
660688
You can’t perform that action at this time.
0 commit comments