A vertical or horizontal scrollbar used to represent a range of numeric values.

Syntax

[<oRef> =] new ScrollBar(<container> [,<name expC>])

<oRef>

A variable or property—typically of <container>—in which to store a reference to the newly created ScrollBar object.

<container>

The container—typically a Form object—to which you’re binding the ScrollBar object.

<name expC>

An optional name for the ScrollBar object. If not specified, the ScrollBar class will auto-generate a name for the object.

Properties

The following tables list the properties and events of interest in the ScrollBar class. (No particular methods are associated with this class.)

Property

Default

Description

baseClassName

className

SCROLLBAR

(SCROLLBAR)

Identifies the object as an instance of the ScrollBar class

Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName

colorNormal

ScrollBar

The color of the scrollbar

dataLink

 

The Field object that is linked to the ScrollBar object

rangeMax

 

The maximum value

rangeMin

 

The minimum value

value

 

The current value

vertical

true

Whether the scrollbar is vertical or horizontal

 

Event

Parameters

Description

onChange

 

After the scrollbar value changes

 

The following table lists the common properties, events, and methods of the ScrollBar class:

Property

 

Event

 

Method

before
borderStyle
dragEffect
enabled
form
height
helpFile
helpId
hWnd
id
left
mousePointer

name
pageno
parent
printable
speedTip
statusMessage
tabStop
top
visible
width

onDesignOpen
onDragBegin
onGotFocus
onHelp
onLeftDblClick
onLeftMouseDown
onLeftMouseUp
onLostFocus
onMiddleDblClick

onMiddleMouseDown
onMiddleMouseUp
onMouseMove
onOpen
onRightDblClick
onRightMouseDown
onRightMouseUp
when

drag( )
move( )
release( )
setFocus( )

Description

The ScrollBar object is maintained primarily for compatibility. Use a Slider instead.