TrackBar Interface Reference

A trackbar is a control that contains a slider and optional tick marks. More...

Inheritance diagram for TrackBar:

Inheritance graph
Collaboration diagram for TrackBar:

Collaboration graph
List of all members.

Public Member Functions

 SelectAll (void)
 Selects all.
 ClearSelection (void)
 Clears the selection.

Properties

VARIANT_BOOL RW Vertical []
 Specifies that the control has vertical orientation.
LONG RW TickMarks []
 Specifies whether the TrackBar displays the tick marks.
ULONG RW SmallChange []
 Specifies the amount by which the TrackBar's value is changed when the user pressed the up, down, left or right button.
ULONG RW LargeChange []
 Specifies the amount by which the TrackBar's value is changed when the user pressed the page up or page down button.
ULONG RW ThumbLength []
 Specifies the size of the slider.
ULONG RW TickFrequency []
 Specifies the frequency for the tick marks.
VARIANT_BOOL RW EnableSelRange []
 Enables the selection range.
LONG RW SelStart []
 Specifies the start of the selection range.
LONG RW SelEnd []
 Specifies the end of the selection range.

Detailed Description

A trackbar is a control that contains a slider and optional tick marks.

The control allows the user to select value from a range.

When the control's value changes, the OnChange event occur.

See also the method CreateTrackBar of the Frame.

Example:

o = new ActiveXObject("Scripting.WindowSystemObject")
o.EnableVisualStyles = true

f = o.CreateForm(0,0,0,0)

f.Text = "WSO"
f.ClientWidth = 320
f.ClientHeight = 80
f.CenterControl()

TrackBar = f.CreateTrackBar(10,10,300,35)
TrackBar.Max = 300
TrackBar.Min = 100
TrackBar.Position = 230

f.Show()

o.Run()

Result:
TrackBar.jpg


Member Function Documentation

ClearSelection ( void   ) 

Clears the selection.

SelectAll ( void   ) 

Selects all.


Property Documentation

VARIANT_BOOL RW EnableSelRange

Enables the selection range.

ULONG RW LargeChange

Specifies the amount by which the TrackBar's value is changed when the user pressed the page up or page down button.

LONG RW SelEnd

Specifies the end of the selection range.

LONG RW SelStart

Specifies the start of the selection range.

ULONG RW SmallChange

Specifies the amount by which the TrackBar's value is changed when the user pressed the up, down, left or right button.

ULONG RW ThumbLength

Specifies the size of the slider.

ULONG RW TickFrequency

Specifies the frequency for the tick marks.

If the property is 0 then the tick marks hided.

LONG RW TickMarks

Specifies whether the TrackBar displays the tick marks.

This parameter can be one of the following values:

VARIANT_BOOL RW Vertical

Specifies that the control has vertical orientation.


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:13:19 2015. (C) Veretennikov A. B. 2004-2015