ScrollBar Interface Reference

The ScrollBar control is a rectangle that contains a scroll box and has direction arrows at both ends. More...

Inheritance diagram for ScrollBar:

Inheritance graph
Collaboration diagram for ScrollBar:

Collaboration graph
List of all members.

Properties

ULONG RW Page []
 Specifies the size of the size box.
ULONG RW SmallChange []
 Specifies the amount by which the ScrollBar's value is changed when the user pressed the arrow button.
ULONG RW LargeChange []
 Specifies the amount by which the ScrollBar's value is changed when the user pressed the mouse button between the size box and arrow.
VARIANT_BOOL RW Vertical []
 When true, the scroll bar displayed vertically.
VARIANT_BOOL RW Tracking []
 Specifies that the value of the scroll bar changes when the user moves the size box.

Detailed Description

The ScrollBar control is a rectangle that contains a scroll box and has direction arrows at both ends.

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 CreateScrollBar 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()

ScrollBar = f.CreateScrollBar(10,10,300,25)
ScrollBar.Max = 300
ScrollBar.Min = 100
ScrollBar.Position = 230
ScrollBar.Page = 50

f.Show()

o.Run()

Result:
ScrollBar.jpg


Property Documentation

ULONG RW LargeChange

Specifies the amount by which the ScrollBar's value is changed when the user pressed the mouse button between the size box and arrow.

ULONG RW Page

Specifies the size of the size box.

Default 0 (means that the property not used).

ULONG RW SmallChange

Specifies the amount by which the ScrollBar's value is changed when the user pressed the arrow button.

VARIANT_BOOL RW Tracking

Specifies that the value of the scroll bar changes when the user moves the size box.

When false, the value changes only when the user releases the mouse button.

VARIANT_BOOL RW Vertical

When true, the scroll bar displayed vertically.


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