Skip to content

Commit 5494e22

Browse files
committed
Adding TTrackBar wrapper
1 parent 909b306 commit 5494e22

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Source/vcl/WrapVclComCtrls.pas

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,16 @@ TPyDelphiPageControl = class (TPyDelphiWinControl)
103103
property DelphiObject: TPageControl read GetDelphiObject write SetDelphiObject;
104104
end;
105105

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+
106116
implementation
107117

108118
uses
@@ -137,6 +147,7 @@ procedure TComCtrlsRegistration.RegisterWrappers(APyDelphiWrapper: TPyDelphiWrap
137147
{$ENDIF FPC}
138148
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiPageControl);
139149
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTabSheet);
150+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiTrackBar);
140151

141152
APyDelphiWrapper.EventHandlers.RegisterHandler(TTabChangingEventHandler);
142153
end;
@@ -613,6 +624,23 @@ class function TTabChangingEventHandler.GetTypeInfo: PTypeInfo;
613624
Result := System.TypeInfo(TTabChangingEvent);
614625
end;
615626

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+
616644
initialization
617645
RegisteredUnits.Add( TComCtrlsRegistration.Create );
618646
{$IFNDEF FPC}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy