REBOL Programming/scroll-drag

USAGE:Edit

SCROLL-DRAG face /back /page 

DESCRIPTION:Edit

Move the scroller drag bar

SCROLL-DRAG is a function value.

ARGUMENTSEdit

  • face -- the scroller to modify (Type: any)

REFINEMENTSEdit

  • /back -- move backward
  • /page -- move each time by one page

SOURCE CODEEdit

scroll-drag: func [
    "Move the scroller drag bar" 
    face "the scroller to modify" 
    /back "move backward" 
    /page "move each time by one page"
][
    any [
        all [back page move-drag face/pane/2 face/page] 
        all [back move-drag face/pane/2 face/step] 
        all [page move-drag face/pane/3 face/page] 
        move-drag face/pane/3 face/step
    ]
]
Last modified on 13 November 2012, at 10:50