REBOL Programming/set-style

USAGE:Edit

SET-STYLE name new-face /styles ss 

DESCRIPTION:Edit

Set a style by its name.

SET-STYLE is a function value.

ARGUMENTSEdit

  • name -- (Type: word)
  • new-face -- (Type: object)

REFINEMENTSEdit

  • /styles
    • ss -- Stylesheet (Type: any)

SOURCE CODEEdit

set-style: func [
    "Set a style by its name." 
    name [word!] 
    new-face [object!] 
    /styles ss "Stylesheet" 
    /local here
][
    if none? styles [ss: vid-styles] 
    either here: find ss name [change next here new-face] [repend ss [name new-face]]
]
Last modified on 13 November 2012, at 10:49