@@ -95,6 +95,36 @@ TPyDelphiStyledControl = class(TPyDelphiControl)
9595 property DelphiObject: TStyledControl read GetDelphiObject write SetDelphiObject;
9696 end ;
9797
98+ TPyDelphiTextControl = class (TPyDelphiStyledControl)
99+ private
100+ function GetDelphiObject : TTextControl;
101+ procedure SetDelphiObject (const Value : TTextControl);
102+ public
103+ class function DelphiObjectClass : TClass; override;
104+ // Properties
105+ property DelphiObject: TTextControl read GetDelphiObject write SetDelphiObject;
106+ end ;
107+
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+
118+ TPyDelphiPopup = class (TPyDelphiStyledControl)
119+ private
120+ function GetDelphiObject : TPopup;
121+ procedure SetDelphiObject (const Value : TPopup);
122+ public
123+ class function DelphiObjectClass : TClass; override;
124+ // Properties
125+ property DelphiObject: TPopup read GetDelphiObject write SetDelphiObject;
126+ end ;
127+
98128implementation
99129
100130type
@@ -402,6 +432,9 @@ procedure TControlsRegistration.RegisterWrappers(
402432 inherited ;
403433 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiControl);
404434 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyledControl);
435+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTextControl);
436+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyleBook);
437+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPopup);
405438end ;
406439
407440{ TControlsAccess }
@@ -627,6 +660,57 @@ function TPyDelphiStyledControl.Set_StyleLookup(AValue: PPyObject;
627660 Result := -1 ;
628661end ;
629662
663+ { TPyDelphiTextControl }
664+
665+ class function TPyDelphiTextControl.DelphiObjectClass : TClass;
666+ begin
667+ Result := TTextControl;
668+ end ;
669+
670+ function TPyDelphiTextControl.GetDelphiObject : TTextControl;
671+ begin
672+ Result := TTextControl(inherited DelphiObject);
673+ end ;
674+
675+ procedure TPyDelphiTextControl.SetDelphiObject (const Value : TTextControl);
676+ begin
677+ inherited DelphiObject := Value ;
678+ end ;
679+
680+ { TPyDelphiStyleBook }
681+
682+ class function TPyDelphiStyleBook.DelphiObjectClass : TClass;
683+ begin
684+ Result := TStyleBook;
685+ end ;
686+
687+ function TPyDelphiStyleBook.GetDelphiObject : TStyleBook;
688+ begin
689+ Result := TStyleBook(inherited DelphiObject);
690+ end ;
691+
692+ procedure TPyDelphiStyleBook.SetDelphiObject (const Value : TStyleBook);
693+ begin
694+ inherited DelphiObject := Value ;
695+ end ;
696+
697+ { TPyDelphiPopup }
698+
699+ class function TPyDelphiPopup.DelphiObjectClass : TClass;
700+ begin
701+ Result := TPopup;
702+ end ;
703+
704+ function TPyDelphiPopup.GetDelphiObject : TPopup;
705+ begin
706+ Result := TPopup(inherited DelphiObject);
707+ end ;
708+
709+ procedure TPyDelphiPopup.SetDelphiObject (const Value : TPopup);
710+ begin
711+ inherited DelphiObject := Value ;
712+ end ;
713+
630714initialization
631715 RegisteredUnits.Add(TControlsRegistration.Create);
632716
0 commit comments