< Rebol Programming

USAGE:

CLEAR-FIELDS panel 

DESCRIPTION:

Clear all text fields faces of a layout.

CLEAR-FIELDS is a function value.

ARGUMENTS

  • panel -- (Type: object)

SOURCE CODE

clear-fields: func [
    "Clear all text fields faces of a layout." 
    panel [object!]
][
    if not all [in panel 'type panel/type = 'face] [exit] 
    unfocus 
    foreach face panel/pane [
        if all [series? face/text flag-face? face field] [
            clear face/text 
            face/line-list: none
        ]
    ]
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.