PageRight event
Description
Occurs when the open space to the right of the scroll box
is clicked.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_sbnpagedown |
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, 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 Right event. -
For dragging the thumb itself, use the Moved event.
Examples
This code in the PageRight event causes the thumb
to move right when the user clicks on the right arrow of the horizontal
scroll bar (the page size is stored in the instance variable ii_pagesize):
|
1 |
IF This.Position > & |
|
1 |
This.MaxPosition - ii_pagesize THEN |
|
1 |
   This.Position = MaxPosition |
|
1 |
ELSE |
|
1 |
   This.Position = This.Position + ii_pagesize |
|
1 |
END IF |