Re: What replaces root.Event?

Brian Alliet <[email protected]> Mon, 12 Jan 2004 19:49:39 -0500
Newsgroups gmane.comp.java.xwt.widgets
Message-ID <[email protected]>
On Jan 12, 2004, at 6:54 PM, Charles Goodwin wrote:

> Before, if you wanted to track a mouse event _outside_ of a widget, you
> would simple use the root object:
[snip]
>     root.Release1 += function( v ) {
>         xwt.log.info( "button1 released!" );
>     }

This is now handled by the "surface" properly. The core does nothing 
with surface except pass it up the box tree until it is trapped. What 
exactly is contained in the object returned by surface is completely 
determined by the widget set.

window.xwt in the widget set should trap this and return an object with 
some useful functions in it. (Like a function that can be called to set 
a trap on Release1). niwi/xwt/lib/surface.xwt doesn't look like it has 
anything that does this in there yet but I think David is working on 
it.

-Brian