LineRight event
Description
Occurs when the user clicks in the right arrow of the horizontal
scroll bar or presses the right arrow key on the keyboard when focus
is on a horizontal track bar.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_sbnlinedown |
HScrollBar, HTrackBar |
Parameters
None
Return Values
Long. Return code choices (specify in
a RETURN statement):
-
0 Continue
processing
Usage
When the user clicks in a horizontal scroll bar or presses
the right 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 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
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:
|
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 = "LineRight " + String(This.Position) |