Last modified on 13 November 2012, at 10:50

REBOL Programming/set-face

USAGE:Edit

SET-FACE face value /no-show 

DESCRIPTION:Edit

Sets the primary value of a face. Returns face object (for show).

SET-FACE is a function value.

ARGUMENTSEdit

  • face -- (Type: any)
  • value -- (Type: any)

REFINEMENTSEdit

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

SOURCE CODEEdit

set-face: func [
    {Sets the primary value of a face. Returns face object (for show).} 
    face 
    value 
    /no-show "Do not show change yet" 
    /local access
][
    if all [
        access: get in face 'access 
        in access 'set-face*
    ] [
        access/set-face* face value
    ] 
    if not no-show [show face] 
    face
]