User Tools

Site Tools


scrollend_scroll_to_first_or_last_item_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== ScrollEnd (scroll to first or last item) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

ScrollEnd( scrollevent ), VIRTUAL, PROTECTED

blk2blue.jpg

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

scrollend_scroll_to_first_or_last_item_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1