REBOL 3之如何更新已经查看过的布局
kuangbin
阅读:49
2024-09-07 23:24:14
评论:0
我正在尝试在查看布局后将字段添加到布局
view/no-wait m: [field "hello"]
insert tail m 'field
insert tail m "hello"
update-face m
** Script error: update-face does not allow block! for its face argument
我想更新整个布局,而不仅仅是字段或其中的一部分。如果我尝试使用 view m
,它会打开一个新窗口。我是否只需要取消查看然后再次查看?
请您参考如下方法:
您也可以使用 R3-GUI 中的 LAYOUT 功能。请参见下面的示例:
view/no-wait m: layout [field "hello"]
;We need to get the BACKDROP container which is first sub-face in the WINDOW face
m: first faces? m
append-content m [
field "world"
]
do-events
当然还有其他方法可以动态处理布局内容。
声明
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。