Skip to content

Commit 14aa42d

Browse files
committed
Including TTabControl wrapper
1 parent 8c9c071 commit 14aa42d

File tree

1 file changed

+56
-1
lines changed

1 file changed

+56
-1
lines changed

Source/vcl/WrapVclComCtrls.pas

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{$I ..\Definition.Inc}
1+
{$I ..\Definition.Inc}
22

33
unit WrapVclComCtrls;
44

@@ -159,6 +159,24 @@ TPyDelphiToolbar = class(TPyDelphiWinControl)
159159
write SetDelphiObject;
160160
end;
161161

162+
TPyDelphiCustomCustomTabControl = class (TPyDelphiWinControl)
163+
private
164+
function GetDelphiObject: TCustomTabControl;
165+
procedure SetDelphiObject(const Value: TCustomTabControl);
166+
public
167+
class function DelphiObjectClass : TClass; override;
168+
property DelphiObject: TCustomTabControl read GetDelphiObject write SetDelphiObject;
169+
end;
170+
171+
TPyDelphiCustomTabControl = class (TPyDelphiCustomCustomTabControl)
172+
private
173+
function GetDelphiObject: TTabControl;
174+
procedure SetDelphiObject(const Value: TTabControl);
175+
public
176+
class function DelphiObjectClass : TClass; override;
177+
property DelphiObject: TTabControl read GetDelphiObject write SetDelphiObject;
178+
end;
179+
162180
implementation
163181

164182
uses
@@ -197,6 +215,8 @@ procedure TComCtrlsRegistration.RegisterWrappers(APyDelphiWrapper: TPyDelphiWrap
197215
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTrackBar);
198216
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiToolButton);
199217
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiToolbar);
218+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomCustomTabControl);
219+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomTabControl);
200220

201221
APyDelphiWrapper.EventHandlers.RegisterHandler(TTabChangingEventHandler);
202222
end;
@@ -809,6 +829,41 @@ procedure TPyDelphiToolbar.SetDelphiObject(const Value: TToolbar);
809829
inherited DelphiObject := Value;
810830
end;
811831

832+
{ TPyDelphiCustomCustomTabControl }
833+
834+
class function TPyDelphiCustomCustomTabControl.DelphiObjectClass: TClass;
835+
begin
836+
Result := TCustomTabControl;
837+
end;
838+
839+
function TPyDelphiCustomCustomTabControl.GetDelphiObject: TCustomTabControl;
840+
begin
841+
Result := TCustomTabControl(inherited DelphiObject);
842+
end;
843+
844+
procedure TPyDelphiCustomCustomTabControl.SetDelphiObject(
845+
const Value: TCustomTabControl);
846+
begin
847+
inherited DelphiObject := Value;
848+
end;
849+
850+
{ TPyDelphiCustomTabControl }
851+
852+
class function TPyDelphiCustomTabControl.DelphiObjectClass: TClass;
853+
begin
854+
Result := TTabControl;
855+
end;
856+
857+
function TPyDelphiCustomTabControl.GetDelphiObject: TTabControl;
858+
begin
859+
Result := TTabControl(inherited DelphiObject);
860+
end;
861+
862+
procedure TPyDelphiCustomTabControl.SetDelphiObject(const Value: TTabControl);
863+
begin
864+
inherited DelphiObject := Value;
865+
end;
866+
812867
initialization
813868
RegisteredUnits.Add( TComCtrlsRegistration.Create );
814869
{$IFNDEF FPC}

0 commit comments

Comments
 (0)