[REBOL] listen to events only for a specific window?
From: arolls::bigpond::net::au at: 11-Jul-2001 17:25
How can I have two windows open, but
listen for events on only one of them?
eg. If you click on the button, an
error is generated and the error
window pops open. But! You can still
click on the button! The first window
is still receiving events. I want
to stop/pause that until user makes a
decision in the error window.
lay: layout [
button [lafd] ; generate error
]
; If an error happens in the VID code, I am going to catch it.
first-time?: yes
while [
error? err: try [
either first-time? [view center-face lay][wait none]
]
][
if error? err [err: disarm err]
first-time?: no
view/new layout [
origin 5x5
h3 "Program Error"
across
button "continue" [unview]
button "quit" [unview/all halt]
return
area mold err
]
; this effectively continues from here - it shouldn't.
; I want to listen only to the error window
; until "continue" is pressed.
;probe wait/all []
]