REBOL Programming/scroll-face

USAGE:Edit

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

DESCRIPTION:Edit

Scroll a face. Default is vertical.

SCROLL-FACE is a function value.

ARGUMENTSEdit

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

REFINEMENTSEdit

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

SOURCE CODEEdit

scroll-face: func [
    "Scroll a face. Default is vertical." 
    face 
    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] 
    face
]
Last modified on 13 November 2012, at 10:50