surface

Charles Goodwin <[email protected]> Sat, 20 Mar 2004 02:46:00 +0000
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
I remember a discussion on trapping surface, a few months ago.

If I remember correctly, it was agreed that being able to trap writes to
surface would be a good thing so that widgets can be aware of when they
change surfaces and make any adjustments necessary.

At the moment, this is not implemented.  And, on top of that, we have
the contents of ibex.lib.surface which make matters extremely confusing:

<ibex>
    <ui:box>
 
        var s = { };
        thisbox.surface ++= function() { return s; };
 
    </ui:box>
</ibex>

In the various library widgets, we access functions put to surface.

The problem is, is that here surface is returned as an object.  But in
reality a surface is a box!  This would really get confusing when
trapping surface:

surface ++= function(v) {
    // v == box !
    cascade = v;
    // surface reads as object !
}

Also, if 'surface' is a global reference to a boxes surface, then why do
we need ibex.lib.surface to assign an object to it?
-- 
- Charlie

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