Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 在Rebol中刷新映像_User Interface_Web_Rebol - Fatal编程技术网

User interface 在Rebol中刷新映像

User interface 在Rebol中刷新映像,user-interface,web,rebol,User Interface,Web,Rebol,我已经做了一段时间了。我看了REBOL文档和这里的答案,但我被难住了。有人能告诉我如何获取REBOL GUI映像以更新到另一个映像吗?这是我经过两天的黑客攻击后得到的代码。任何帮助他都将不胜感激 REBOL [ Title: "Yvonne View" ] yvonne: func[] [ parts: probe parse read http://pics.mytrapster.com/yvonne.php {="} load to-string parts/6

我已经做了一段时间了。我看了REBOL文档和这里的答案,但我被难住了。有人能告诉我如何获取REBOL GUI映像以更新到另一个映像吗?这是我经过两天的黑客攻击后得到的代码。任何帮助他都将不胜感激

REBOL [
    Title: "Yvonne View"
]

yvonne: func[] [
    parts: probe parse read http://pics.mytrapster.com/yvonne.php {="}
    load to-string parts/6    
]

img1: to-image (load-image yvonne)
img2: to-image (load-image yvonne)

v1: layout [
    size 500x500
    b: image img1
    btn "Refresh" [ b: img2 ]
    btn "Quit" [quit]
]

view v1
url将加载。“退出”按钮起作用。“b”变量只是不清除和更新


谢谢。

更新图像的方法是使用
set face

将刷新按钮行更改为:

 btn "Refresh" [set-face b img2]

或者,如果您正在手动更改面窗格,您可以使用
show
(即
show b

我自己更正了<使用设置面时,不需要代码>显示