Rebol Programming/scroll-face

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

SCROLL-FACE face offset /x /y /no-show 

DESCRIPTION:[edit | edit source]

Scroll a face. Default is vertical.

SCROLL-FACE is a function value.

ARGUMENTS[edit | edit source]

  • face -- (Type: any)
  • offset -- (Type: number)

REFINEMENTS[edit | edit source]

  • /x -- Scroll in width direction
  • /y -- Scroll in height direction
  • /no-show -- Do not show change yet

SOURCE CODE[edit | edit source]

scroll-face: func [
    "Scroll a face. Default is vertical." 
    offset [number!] 
    /x "Scroll in width direction" 
    /y "Scroll in height direction" 
    /no-show "Do not show change yet" 
    /local access
    if all [
        access: get in face 'access 
        in access 'scroll-face*
    ] [
        access/scroll-face* face offset x y
    if not no-show [show face]