Navigation: ABC Library Reference > BrowseClass > BrowseClass Methods >====== TakeScroll (process a scroll event) ====== | ![]() ![]() |
TakeScroll( [scrollevent] ), VIRTUAL
| TakeScroll | Processes a scroll event for the browse list. |
| scrollevent | An integer constant, variable, EQUATE, or expression that specifies the scroll event. Valid scroll events are up one item, down one item, up one page, down one page, up to the first item, and down to the last item. If omitted, no scrolling occurs. |
The **TakeScroll **method processes a scroll event for the browse list.
Implementation:
A //scrollevent //value of EVENT:ScrollUp scrolls up one item; EVENT:ScrollDown scrolls down one item; EVENT:PageUp scrolls up one page; EVENT:PageDown scrolls down one page; EVENT:ScrollTop scrolls to the first list item; EVENT:ScrollBottom scrolls to the last list item. Corresponding //scrollevent //EQUATEs are declared in EQUATES.CLW.
EVENT:ScrollUp EQUATE (03H)
EVENT:ScrollDown EQUATE (04H)
EVENT:PageUp EQUATE (05H)
EVENT:PageDown EQUATE (06H)
EVENT:ScrollTop EQUATE (07H)
EVENT:ScrollBottom EQUATE (08H)
The TakeScroll method calls the ScrollEnd, ScrollOne, or ScrollPage method as needed.
Example:
** IF FIELD() = ?MyBrowse !focus on browse list**
** CASE EVENT() !scroll event**
** OF EVENT:ScrollUp**
** OROF EVENT:ScrollDown**
** OROF EVENT:PageUp**
** OROF EVENT:PageDown**
** OROF EVENT:ScrollTop**
** OROF EVENT:ScrollBottom**
** MyBrowse.TakeScroll !BrowseClass object handles it**
** END**
** END**
**See Also: **ScrollEnd, ScrollOne, ScrollPage





