Re: globalx/globaly

David Crawshaw <[email protected]> Fri, 19 Mar 2004 07:32:17 +1000
Newsgroups gmane.comp.java.xwt.core
Message-ID <[email protected]>
On 17/03/2004, at 5:30 PM, Adam Megacz wrote:
>> I'd personally like to keep them.  They are probably the only method 
>> of synchronising two boxes who do not share the same parent or a 
>> similar heritage.
>
> Ideally they would be replaced with a function that gives you the
> relative position of two boxes.

Big fan of relativistic thinking, but I you still need to be able to 
find your position relative to your root box. This serves more purpose 
than the difference between two boxes, it represents the 'active 
visible surface'.

That said, if a function did give you the relative position between two 
boxes, we could then build a globalx, gloably, globalwidth, 
globalheight into the surface object in the widget library by comparing 
the root (be it real or fake) with that of the child.

-- d