Navigation: ABC Library Reference > BrowseClass > BrowseClass Methods >====== ScrollEnd (scroll to first or last item) ====== | |
ScrollEnd( scrollevent ), VIRTUAL, PROTECTED
ScrollEnd | Scrolls to the first or last browse list item. |
scrollevent | A numeric constant, variable, EQUATE, or expression that indicates the requested scroll action. Valid scroll actions for this method are scrolls to the top or bottom of the list. |
The ScrollEnd method scrolls to the first or last browse list item.
Implementation:
The BrowseClass.TakeScroll method calls the ScrollEnd method.
A hexadecimal scrollevent value of EVENT:ScrollTop scrolls to the first list item. A value of EVENT:ScrollBottom scrolls to the last list item. Corresponding scroll event EQUATEs are declared in EQUATES.CLW:
EVENT:ScrollTop EQUATE (07H)
EVENT:ScrollBottom EQUATE (08H)
Example:
BrowseClass.TakeScroll PROCEDURE( SIGNED Event )
CODE
IF RECORDS(SELF.ListQueue)
CASE Event
OF Event:ScrollUp OROF Event:ScrollDown
SELF.ScrollOne( Event )
OF Event:PageUp OROF Event:PageDown
SELF.ScrollPage( Event )
OF Event:ScrollTop OROF Event:ScrollBottom
SELF.ScrollEnd( Event )
END
END
See Also: TakeScroll