跳转到内容

Rebol 编程/unview

来自维基教科书,开放的书籍,为开放的世界
UNVIEW /all /only face 

关闭窗口视图,除了主视图。

UNVIEW 是一个函数值。

  • /all -- 关闭所有视图,包括主视图
  • /only
    • face -- 关闭单个视图(类型:对象)

源代码

[编辑 | 编辑源代码]
unview: func [
    "Closes window views, except main view." 
    /all "Close all views, including main view" 
    /only face [object!] "Close a single view" 
    /local pane
][
    pane: head system/view/screen-face/pane 
    either only [remove find pane face] [
        either all [clear pane] [remove back tail pane]
    ] 
    show system/view/screen-face
]
华夏公益教科书