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

[REBOL] Re: listen to events only for a specific window?

From: arolls:bigpond:au at: 15-Jul-2001 2:02

Ah good! Another way, even simpler. Here's how I see it: view/new lay: layout [ t: h3 300 form now/time rate 1 feel [ engage: func [f a e][ if e/type = 'time [ t/text: form now/time show t ] ] ] ] view/new layout [ button "disable" [ lay/feel: make lay/feel [ detect: func [f e][none] ] ] button "enable" [ lay/feel: make lay/feel [ detect: func [f e][e] ] ] ] do-events Of course, I am obliterating the lay window's feel, but that's ok, we can make a copy and restore later. A mistake that held me up in all this was forgetting that viewing a window sets the window's feel. Anton.