Moved

Description

Occurs when the user moves the scroll box, either by clicking on the arrows or by dragging the box itself.

Event ID

Event ID

Objects

pbm_sbnthumbtrack

HScrollBar, HTrackBar, VScrollBar, VTrackBar

Arguments

Argument

Description

scrollpos

Integer by value (a number indicating position of the scroll box within the range of values specified by the MinPosition and MaxPosition properties)

Returns

Long. Return code choices (specify in a RETURN statement):

Usage

The Moved event updates the Position property of the scroll bar with the value of scrollpos.

Examples

Example 1

This statement in the Moved event displays the new position of the scroll box in a StaticText control:

st_1.Text = "Moved " + String(scrollpos)

See also