Occurs when right arrow of the horizontal scroll bar is clicked.
Event ID |
Objects |
---|---|
pbm_sbnlinedown |
HScrollBar, HTrackBar |
None
Long. Return code choices (specify in a RETURN statement):
0 Continue processing
When the user clicks in a horizontal scroll bar, nothing happens unless you have scripts that change the scroll bar’s Position property. For the scroll bar arrows, use the LineLeft and LineRight events; for clicks in the scroll bar background above and below the thumb, use the PageLeft and PageRight events; for dragging the thumb itself, use the Moved event.
This code in the LineRight event causes the thumb to move right when the user clicks on the right arrow of the horizontal scroll bar and displays the resulting position in the StaticText control st_1:
IF This.Position > This.MaxPosition - 1 THEN
This.Position = MaxPosition
ELSE
This.Position = This.Position + 1
END IF
st_1.Text = "LineRight " + String(This.Position)