Re: PATCH: Bug 186
Charles Goodwin <[email protected]>
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <308906BE5D07D5119285009027D61C5722F665@NTFPS1> |
Adam, do you think this gives any advantage over the current implementation:
<scrollpane>
<box scrollpane_tag="north" />
<box>
</scrollpane>
David's (valid) criticism is that this messes with box karma (in that the
scrollpane appears to have 2 children but in reality only has 1 since the
'north' box gets moved internally).
My argument was that both his suggestions and your suggestions also messed
with box karma, just moved the messing about elsewhere. However, David
points out that this is more manual and hence it is easier to understand
what is going on for the application developer.
What's your opinion?
-----Original Message-----
From: Adam Megacz [mailto:[email protected]]
Sent: 01 April 2003 12:16
To: [email protected]
Subject: Re: [xwt-dev] PATCH: Bug 186
David Crawshaw <[email protected]> writes:
> What if each child that was passed into the scrollpane could have a
> series of boxes assigned as variables, like scroll_north, scroll_south,
> etc.
No need to use boxes as the container....
// $container has a _children trap
$container.children = { north: $foo, south: $bar, ... }
I think I used this somewhere in the mail demo...
- a
_______________________________________________
http://lists.xwt.org/listinfo/dev
_______________________________________________
http://lists.xwt.org/listinfo/dev