Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[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.