REBOL Programming/reset-face

USAGE:Edit

RESET-FACE face /no-show 

DESCRIPTION:Edit

Resets the primary value of a face.

RESET-FACE is a function value.

ARGUMENTSEdit

  • face -- (Type: any)

REFINEMENTSEdit

  • /no-show -- Do not show change yet

SOURCE CODEEdit

reset-face: func [
    "Resets the primary value of a face." 
    face 
    /no-show "Do not show change yet" 
    /local access
][
    if all [
        access: get in face 'access 
        in access 'reset-face*
    ] [
        access/reset-face* face
    ] 
    if not no-show [show face] 
    face
]
Last modified on 13 November 2012, at 10:51