REBOL Programming/hide-popup

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

HIDE-POPUP /timeout 

DESCRIPTION:[edit]

(undocumented)

HIDE-POPUP is a function value.

REFINEMENTS[edit]

  • /timeout

SOURCE CODE[edit]

hide-popup: func [/timeout /local win-face][
    if not find pop-list pop-face [exit] 
    win-face: any [pop-face/parent-face system/view/screen-face] 
    remove find win-face/pane pop-face 
    remove back tail pop-list 
    if timeout [pop-face: pick pop-list length? pop-list] 
    show win-face
]