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)


Return Values

Long.

Return code choices (specify in a RETURN statement):

0 -- Continue processing

Usage

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

Examples

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

LineDown

LineLeft

LineRight

LineUp

PageDown

PageLeft

PageRight

PageUp