LineUp

Description

Occurs when the user clicks the up arrow of the vertical scroll bar or presses the up arrow on the keyboard when the focus is on a track bar

Event ID

Event ID

Objects

pbm_sbnlineup

VScrollBar, VTrackBar

Arguments

None

Returns

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

Usage

When the user clicks in a vertical scroll bar or presses the up arrow key with focus in a vertical track bar, nothing happens unless you have scripts that change the bar’s Position property. For the scroll bar arrows and arrow keys for the track bar, use the LineUp and LineDown events; for clicks in the scroll bar or track bar background above and below the thumb, use the PageUp and PageDown event; for dragging the thumb itself, use the Moved event.

Examples

Example 1

This code in the LineUp event causes the thumb to move up when the user clicks on the up arrow of the vertical 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 = "LineUp " + String(This.Position)

See also