REBOL 3-如何更新已经查看过的布局? [英] REBOL 3 - How to update a layout that has already been viewed?

查看:89
本文介绍了REBOL 3-如何更新已经查看过的布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在查看布局后将其添加到布局中

I'm trying to add a field to a layout after it has been viewed

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,它将打开一个新窗口.我是否必须先取消查看然后再次查看?

I want to update the whole layout, not just the field or some part of it. If I try to use view m, it opens a new window. Do I just have to un-view it and then view again?

推荐答案

您也可以在R3-GUI中使用LAYOUT函数.请参见下面的示例:

You can use the LAYOUT function in R3-GUI as well. See the example below:

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

当然,还有其他方法可以动态处理布局内容.

Ofcourse there are also other ways how to handle layout content dynamically.

这篇关于REBOL 3-如何更新已经查看过的布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆