Rebol Programming/find-window

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

USAGE:[edit | edit source]

FIND-WINDOW face 

DESCRIPTION:[edit | edit source]

Find a face's window face.

FIND-WINDOW is a function value.

ARGUMENTS[edit | edit source]

  • face -- (Type: object)

SOURCE CODE[edit | edit source]

find-window: func [
    "Find a face's window face." 
    face [object!]
][
    while [face/parent-face] [face: face/parent-face] 
    face
]