[REBOL] Interrupting an action
From: sanghabum::aol::com at: 15-Jul-2001 6:06
Hi all,
If I've got a VID action facet that takes a long time, how can I provide the
user with some way of aborting the action?
I've tried polling the Console as per the KBHIT thread of some weeks ago. But
that takes input from the Console, not the layout.
So what code can I use to replace the comment below?
=========
unview/all
view layout [
Button "long wait"
[
ResultField/Text: "Working" show resultField
loop 100
[ wait 1
;;check for escape key/cancel button
] ;loop
ResultField/Text: "Finished" show resultField
];action
resultField: info
];layout
=========
Thanks,
Colin.