User Tools

Site Tools


scrollone_scroll_up_or_down_one_item_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== ScrollOne (scroll up or down one item) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

ScrollOne( scrollevent ), VIRTUAL, PROTECTED

blk2blue.jpg

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

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