Vcl.ComCtrls.TTrackBar.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

__fastcall virtual TTrackBar(System::Classes::TComponent* AOwner);
/* TWinControl.CreateParented */ inline __fastcall TTrackBar(HWND ParentWindow) : Vcl::Controls::TWinControl(ParentWindow) { }

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTrackBar

Description

Creates and initializes an instance of TTrackBar.

Call Create to instantiate a TTrackBar object at runtime. Track bars placed on forms at design time are created automatically.

Create allocates memory and initializes the following properties:

ControlStyle is set to [csCaptureMouse, csClickEvents, csSetCaption].

Frequency is set to 1.

Height is set to 45 and Width to 150.

LineSize is set to 1 and PageSize to 2.

Max is set to 10 and Min to 0.

Orientation is set to trHorizontal.

TickMarks is set to tbBottomRight and TickStyle to tsAuto.

TabStop is set to true.

See Also