跳轉到內容

Rebol 程式設計/set-face

來自華夏公益教科書,開放書籍,開放世界
SET-FACE face value /no-show 

設定一個面的主要值。返回面對象(用於顯示)。

SET-FACE 是一個函式值。

  • face -- (型別:任何)
  • value -- (型別:任何)
  • /no-show -- 暫不顯示更改

原始碼

[編輯 | 編輯原始碼]
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
]
華夏公益教科書