Occurs when the user moves the scroll box, either by clicking on the arrows or by dragging the box itself.
Event ID |
Objects |
---|---|
pbm_sbnthumbtrack |
HScrollBar, HTrackBar, VScrollBar, VTrackBar |
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) |
Long. Return code choices (specify in a RETURN statement):
0 Continue processing
The Moved event updates the Position property of the scroll bar with the value of scrollpos.
This statement in the Moved event displays the new position of the scroll box in a StaticText control:
st_1.Text = "Moved " + String(scrollpos)