Re: Trapping Box Properties?

Adam Megacz <[email protected]> Mon, 12 Apr 2004 01:09:00 -0700
Newsgroups gmane.comp.java.xwt.core
Organization XWT
Message-ID <[email protected]>
So, I've been thinking about this, and it's actually not as scary as
it looks.  In fact, I think trapping width and height will replace
SizeChange, and trapping numchildren will replace ChildChange.

I put FIXMEs at the top of Box.java noting the places where we might
run into trouble.

  - a

Charles Goodwin <[email protected]> writes:
> On Sat, 2004-04-10 at 00:20 -0700, Adam Megacz wrote:
>> I'll probably lift the restriction.  The only thing is that people
>> need to be aware that the values can (and quite often _do_) change
>> without any value being put to them.  If you put a write trap on
>> 'width', it's not going to notify you when reflow causes the box size
>> to change.
>
> Hmm, width and height probably shouldn't be trappable as they are
> meta-properties (for writing to min/max width/height), or if they are we
> need to put a big fat warning (of what you just said) in the reference.
> -- 
> - Charlie
>
> Charles Goodwin <[email protected]>
> Online @ www.charlietech.com
>
>
> _______________________________________________
> core mailing list
> [email protected]
> http://lists.xwt.org/listinfo/core
>

-- 
"It's lucky," he added, after a pause, "that there are such a lot of
islands in the world.  I almost envy you, Mr. Watson."

                                                   -- Mustapha Mond