开发者

How to just pop up a wait message window in rebol view?

开发者 https://www.devze.com 2022-12-29 11:21 出处:网络
I just want to popup a wait message window in rebol view, but there\'s no option to do so with View command as

I just want to popup a wait message window in rebol view, but there's no option to do so with View command as

View win: layout [text "wait"开发者_如何学JAVA]

do-some-lengthy-task

Unview win

will block the script until the user close the message himself which is not wanted here of course.

So how to make non-blocking view ?


What about this?

View/new win: layout [button "Do-It" [print "ok"]]
repeat i 10 [print i wait 0:0:1] ;lengthy-task
Unview win


fl: flash "Hang about .... "

do stuff...

unview/only fl

0

精彩评论

暂无评论...
验证码 换一张
取 消