LineDown event
Description
Occurs when the user clicks the down arrow of the vertical
scroll bar or presses the down arrow on the keyboard when the focus
is on a track bar.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_sbnlinedown |
VScrollBar, VTrackBar |
Parameters
None
Return Values
Long. Return code choices (specify in
a RETURN statement):
-
0 Continue
processing
Usage
When the user clicks in a vertical scroll bar or presses the
down 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
This code in the LineDown event causes the thumb
to move down when the user clicks on the down arrow of the vertical
scroll bar and displays the resulting position in the StaticText
control st_1:
|
1 |
IF This.Position > This.MaxPosition - 1 THEN |
|
1 |
   This.Position = MaxPosition |
|
1 |
ELSE |
|
1 |
   This.Position = This.Position + 1 |
|
1 |
END IF |
|
1 |
|
1 |
st_1.Text = "LineDown " + String(This.Position) |