System Reference Summary : 4. 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
Specifies the field that has been changed
OriginatorField
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
More information:
OriginatorField Attribute
TriggerField Attribute