LineLeft

Description

Occurs when the user clicks in the left arrow of the horizontal scroll bar or presses the left arrow key on the keyboard when focus is on a horizontal track bar.

Event ID

Event ID

Objects

pbm_sbnlineup

HScrollBar, HTrackBar

Arguments

None

Returns

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

Usage

When the user clicks in a horizontal scroll bar or presses the left arrow key on the keyboard in a horizontal track bar, nothing happens unless you have scripts that change the bar’s Position property. For the scroll bar arrows and left arrow keys in a track bar, use the LineLeft and LineRight events; for clicks in the background above and below the thumb, use the PageLeft and Right events; for dragging the thumb itself, use the Moved event.

Examples

Example 1

This code in the LineLeft event causes the thumb to move left when the user clicks on the left arrow of the horizontal scroll bar and displays the resulting position in the StaticText control st_1:

IF This.Position < This.MinPosition + 1 THEN

   This.Position = MinPosition

ELSE

   This.Position = This.Position - 1

END IF


st_1.Text = "LineLeft " + String(This.Position)

See also