Language Reference Guide : 5. Events : Scroll Event
 
Share this page                  
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 following attributes of the FrameExec class can be used in the Scroll event block:
TriggerField (see TriggerField Attribute)
Specifies the field that has been changed
OriginatorField (see OriginatorField Attribute)
Specifies the field specified in the initial scroll statement. This will be the same as the TriggerField.
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.) It can be used to enforce particular views of the data or field being scrolled.
For a TreeviewField, there are potentially vertical scrolls and horizontal scrolls. The following FrameExec class attributes can be used to determine which scroll occurred and what the new position is:
XOffset
YOffset
The following TreeviewField class attribute can be used to determine which scroll occurred and what the new position is:
TopNode Attribute
More information:
OriginatorField Attribute
TriggerField Attribute