Re: surface ++= ?

Brian Alliet <[email protected]> Thu, 15 Apr 2004 16:48:17 -0400
Newsgroups gmane.comp.java.xwt.widgets
Message-ID <[email protected]>
On Apr 15, 2004, at 2:19 PM, Charles Goodwin wrote:

> Since Ibex traverses the box hierarchy and creates leaves first, this
> means we cannot refer to the surface property until after the creation
> of a Surface and all of it's children has finished.

This should be pretty easy to solve. We could have the surface property 
work backwards when it is put to. 'surface = true;' would just do 
'surface = true;' on all its children. Then you could just put a write 
trap on surface to know when it changes. surface.t would be responsible 
for doing a surface = true when it starts.

> However, if we want to do things like dragging tabs between frames, or
> other such widget-moving-to-Surface stuff, this means we either:

Hmm.. that is a tricky one. I've been thinking about this for a while 
and I can't think of anything good. The best idea I've had so far is 
just notifying children when their parent changes (you wouldn't tell 
them who their parent is, just that it changed) Children could then 
reregister with the focus manger if necessary when their parent 
changes.

Anybody else got any ideas?

-Brian