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 @@ -103,6 +103,16 @@ TPyDelphiPageControl = class (TPyDelphiWinControl)
103
103
property DelphiObject: TPageControl read GetDelphiObject write SetDelphiObject;
104
104
end ;
105
105
106
+ TPyDelphiTrackBar = class (TPyDelphiWinControl)
107
+ private
108
+ function GetDelphiObject : TTrackBar;
109
+ procedure SetDelphiObject (const Value : TTrackBar);
110
+ public
111
+ class function DelphiObjectClass : TClass; override;
112
+ // Properties
113
+ property DelphiObject: TTrackBar read GetDelphiObject write SetDelphiObject;
114
+ end ;
115
+
106
116
implementation
107
117
108
118
uses
@@ -137,6 +147,7 @@ procedure TComCtrlsRegistration.RegisterWrappers(APyDelphiWrapper: TPyDelphiWrap
137
147
{ $ENDIF FPC}
138
148
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPageControl);
139
149
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTabSheet);
150
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTrackBar);
140
151
141
152
APyDelphiWrapper.EventHandlers.RegisterHandler(TTabChangingEventHandler);
142
153
end ;
@@ -613,6 +624,23 @@ class function TTabChangingEventHandler.GetTypeInfo: PTypeInfo;
613
624
Result := System.TypeInfo(TTabChangingEvent);
614
625
end ;
615
626
627
+ { TPyDelphiTrackBar }
628
+
629
+ class function TPyDelphiTrackBar.DelphiObjectClass : TClass;
630
+ begin
631
+ Result := TTrackBar;
632
+ end ;
633
+
634
+ function TPyDelphiTrackBar.GetDelphiObject : TTrackBar;
635
+ begin
636
+ Result := TTrackBar(inherited DelphiObject);
637
+ end ;
638
+
639
+ procedure TPyDelphiTrackBar.SetDelphiObject (const Value : TTrackBar);
640
+ begin
641
+ DelphiObject := Value ;
642
+ end ;
643
+
616
644
initialization
617
645
RegisteredUnits.Add( TComCtrlsRegistration.Create );
618
646
{ $IFNDEF FPC}
You can’t perform that action at this time.
0 commit comments