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: g:santilli:tiscalinet:it at: 14-Jul-2001 14:39

Hello Anton! On 13-Lug-01, you wrote: A> You put a screen on top to stop A> mouse input but that doesn't stop A> background stuff as in this demo: Of course. :-) Blocking away any event is not always needed, but in that case you could add a DETECT function blocking everything or patch the event port's awake function to only handle the events you want to be handled (it already should do this...). DETECT example: view/new win: layout [...] ; this should be done AFTER viewing the window because ; the function VIEW may change win/feel. win/feel: make win/feel [ ; this will block ALL events detect: func [face event] [none] ] The default awake function is system/view/wake-event. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/