Rebol 编程/clear-fields
外观
< Rebol 编程
CLEAR-FIELDS panel
清除布局中所有文本字段的面板。
CLEAR-FIELDS 是一个函数值。
- panel -- (类型: 对象)
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 ] ] ]