Scroll Event
The Scroll event is triggered after the user has clicked a scroll bar for a table field, a viewport, a treeviewfield, or an independent scrollbar.
This event has the following syntax:
on scroll [tablefield | viewportfield | treeviewfield | scrollbarfield]
The Scroll event lets users determine where they are located within a table field, viewport field, treeview field or scrollbar field. (For more information, see TableField class, TreeviewField class, ScrollBarField class, and ViewportField class in the Language Reference Guide.) It can be used to enforce particular views of the data or field being scrolled.