Re: surface ++= ?

Charles Goodwin <[email protected]> Thu, 15 Apr 2004 21:20:07 +0000
Newsgroups gmane.comp.java.xwt.widgets
Organization XWT Foundation
Message-ID <[email protected]>
On Thu, 2004-04-15 at 17:12 -0400, Brian Alliet wrote:
> > Have the core put "true" to surface whenever a box changes parent and
> > getSurface() has changed.
> 
> That doesn't work with self-emulation, MDI, etc. You may have a 
> non-root box that is a surface if you are making of kind of MDI 
> interface.
> 
> I guess we could compare box.getAndTriggerTraps("surface") before and 
> after but if you have some kind of dynamically generated surface object 
> that doesn't work. We could just say "don't do that" though.

Or, even better, we could just compare the 'surface' property from
within the core when a box changes parent, since that will support
self-emulation and dynamically generated surface objects.

Right?

I also don't think we should be passing 'true' but rather the new
surface object, simply because it gives a nice way of accessing the old
surface object through 'cascade'.
-- 
- Charlie

Charles Goodwin <[email protected]>
Online @ www.charlietech.com