|
1 | | -{$I ..\Definition.Inc} |
| 1 | +{$I ..\Definition.Inc} |
2 | 2 |
|
3 | 3 | unit WrapVclComCtrls; |
4 | 4 |
|
@@ -159,6 +159,24 @@ TPyDelphiToolbar = class(TPyDelphiWinControl) |
159 | 159 | write SetDelphiObject; |
160 | 160 | end; |
161 | 161 |
|
| 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 | + |
162 | 180 | implementation |
163 | 181 |
|
164 | 182 | uses |
@@ -197,6 +215,8 @@ procedure TComCtrlsRegistration.RegisterWrappers(APyDelphiWrapper: TPyDelphiWrap |
197 | 215 | APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTrackBar); |
198 | 216 | APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiToolButton); |
199 | 217 | APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiToolbar); |
| 218 | + APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomCustomTabControl); |
| 219 | + APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomTabControl); |
200 | 220 |
|
201 | 221 | APyDelphiWrapper.EventHandlers.RegisterHandler(TTabChangingEventHandler); |
202 | 222 | end; |
@@ -809,6 +829,41 @@ procedure TPyDelphiToolbar.SetDelphiObject(const Value: TToolbar); |
809 | 829 | inherited DelphiObject := Value; |
810 | 830 | end; |
811 | 831 |
|
| 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 | + |
812 | 867 | initialization |
813 | 868 | RegisteredUnits.Add( TComCtrlsRegistration.Create ); |
814 | 869 | {$IFNDEF FPC} |
|
0 commit comments