*TrackBar*

Back to the start
Back to the libraries overview


Overview (TrackBar)
BackColor (TrackBar)
Control (TrackBar)
Enabled (TrackBar)
Height (TrackBar)
LargeChange (TrackBar)
Left (TrackBar)
Maximum (TrackBar)
Minimum (TrackBar)
New1 (TrackBar)
SmallChange (TrackBar)
TickFrequency (TrackBar)
Top (TrackBar)
Value (TrackBar)
Width (TrackBar)


Overview (TrackBar) Top

TrackBar is a scrollable control which allows the user to choose a value by moving the slider along the bar.
The TrackBar can be either horizontally or vertically.
The range of values can be set using Minimum and Maximum properties.
The TickFrequency property determines the ticks density.
An event named ValueChanged is raised whenever the value changes.
Example:
'Add a TrackBar named bar1.
Sub Globals

End Sub

Sub App_Start
Form1.Show
bar1.New1("Form1",20,100,200,30,false)
bar1.Minimum = 20
bar1.Maximum = 120
bar1.TickFrequency = 10
End Sub

Sub Bar1_ValueChanged
Form1.Text = bar1.Value
End Sub


BackColor (TrackBar) Top

Gets or sets the color of the control.
Syntax: BackColor

Example:
bar1.BackColor = cRed


Control (TrackBar) Top

Gets or sets a reference to the control.
Syntax: Control


Enabled (TrackBar) Top

Gets or sets whether the control is enabled.
Syntax: Enabled

Height (TrackBar) Top

Gets or sets the height of the control.
Syntax: Height


LargeChange (TrackBar) Top

Gets or sets the value to be changed when the slider is moved by pressing on the sides of the control.
Syntax: LargeChange

Example:
bar1.LargeChange = 10


Left (TrackBar) Top

Gets or sets the Left property of the control.
Syntax: Left


Maximum (TrackBar) Top

Gets or sets the maximum value the bar can represent.
Syntax: Maximum

Example:
bar1.Maximum = 100


Minimum (TrackBar) Top

Gets or sets the minimum value the bar can represent.
Syntax: Minimum

Example:
bar1.Minimum = -20


New1 (TrackBar) Top

Initializes the TrackBar object and adds it to a form or a panel.
Syntax: New1 (FormName As Control, Left As Int32, Top As Int32, Width As Int32, Height As Int32m IsVertical As Boolean)
FormName - The name of the form that will contain the bar.
IsVertical - If true then the bar will be vertical, otherwise it will be horizontal.

Example:
bar1.New1("Form1",20,100,200,30,false)


SmallChange (TrackBar) Top

Gets or sets the value to be changed when the slider is moved by pressing on the arrow keys.
Syntax: SmallChange

Example:
bar1.SmallChange = 2


TickFrequency (TrackBar) Top

Gets or sets the distance between each two ticks.
Syntax: TickFrequency

Example:
bar1.TickFrequency = 10


Top (TrackBar) Top

Gets or sets the Top property of the control.
Syntax: Top


Value (TrackBar) Top

Gets or sets the value of the bar.
Syntax: Value

Example:
if bar1.Value >= 20 then ...


Width (TrackBar) Top

Gets or sets the width of the control.
Syntax: Widt