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 @@ -95,6 +95,16 @@ 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+
98108implementation
99109
100110type
@@ -402,6 +412,7 @@ procedure TControlsRegistration.RegisterWrappers(
402412 inherited ;
403413 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiControl);
404414 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiStyledControl);
415+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTextControl);
405416end ;
406417
407418{ TControlsAccess }
@@ -627,6 +638,23 @@ function TPyDelphiStyledControl.Set_StyleLookup(AValue: PPyObject;
627638 Result := -1 ;
628639end ;
629640
641+ { TPyDelphiTextControl }
642+
643+ class function TPyDelphiTextControl.DelphiObjectClass : TClass;
644+ begin
645+ Result := TTextControl;
646+ end ;
647+
648+ function TPyDelphiTextControl.GetDelphiObject : TTextControl;
649+ begin
650+ Result := TTextControl(inherited DelphiObject);
651+ end ;
652+
653+ procedure TPyDelphiTextControl.SetDelphiObject (const Value : TTextControl);
654+ begin
655+ inherited DelphiObject := Value ;
656+ end ;
657+
630658initialization
631659 RegisteredUnits.Add(TControlsRegistration.Create);
632660
You can’t perform that action at this time.
0 commit comments