[REBOL] Re: Catching layout face events
From: nitsch-lists:netcologne at: 22-Jan-2002 22:00
RE: [REBOL] Re: Catching layout face events
[greggirwin--mindspring--com] wrote:
> Thanks Brett,
>
> << I'm curious, do you have any problems / preferences against
> insert-event-func - or just looking at alternatives? >>
>
> Just looking for alternatives really, and thinking about how best to set
> things up in cases where you have multiple layouts to deal with. I.e. do you
> handle these things locally, in each layout, do you have a general function
> you use with insert-event-func and check the face, or do you set up unique
> functions for each layout and insert them all with insert-event-func? That
> kind of stuff.
>
I stay with 'insert-event-func and 'flag-face now.
the problem with a window-feel is, 'view replaces it.
you can work around this by using
;method from ctx-edit
view/new lay ;sets standard feel..
lay/feel: my-feel
if 1 = length? system/view/screen-face/pane [do-events]
but thats not exactly like view does
(replacing main window when only one, and returning, hotkeys..).
i remove func before inserting.
with a customized -event-func (comparing with mold or some marker in body)
if i need to have scripts redoable.