Navigation: ABC Library Reference > BrowseClass > BrowseClass Methods >====== ScrollOne (scroll up or down one item) ====== | |
ScrollOne( scrollevent ), VIRTUAL, PROTECTED
ScrollOne | Scrolls up or down one 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 up or down a single list item. |
The ScrollOne method scrolls up or down one browse list item.
Implementation:
The BrowseClass.TakeScroll method calls the ScrollOne method.
A hexadecimal scrollevent value of EVENT:ScrollUp scrolls up one list item. A value of EVENT:ScrollDown scrolls down one list item. Corresponding scroll event EQUATEs are declared in EQUATES.CLW:
EVENT:ScrollUp EQUATE (03H)
EVENT:ScrollDown EQUATE (04H)
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