Re: PATCH: Bug 186
Charles Goodwin <[email protected]>
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <308906BE5D07D5119285009027D61C5722F658@NTFPS1> |
> Thinking about it for a second, axial slaves are pretty rare. I'd say > somewhere between 1% - 0.1% of scrollpanes actually use them. In fact, > the biggest use for them is your table. That's why I don't think the > manual approach is really a problem. I dunno, I think it's probably a bit higher than that. Scrollpanes are only used in a few situations, textboxen, tables, trees, and anything else is likely to use the axial properties (text editors, graphical editors etc). > 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. Then the _0 could read these 'loose' boxes out of the children, > and add them to the axial slaves. > > When a box is being removed, _0 could check the scroll_north, etc > against the current axial slaves, and remove them if it finds them. > > Now it's not xml-wise perfect, but it makes it very powerful. This > means doing: > > <scrollpane> > <table/> > </scrollpane> > > The table header can be read straight from the variable scroll_north > and added to the northen axial slave. And as soon as you move the table > to a different scrollpane, it follows without any extra thought. > > This doesn't violate the "boxes stay where you put them" rule, because > the boxes being used weren't actually specific children of the other > boxes, they were simply being held in a variable. And it's got some > extra power. This is a better suggestion than the manual adding, but it's still fairly a 'move it elsewhere' issue. > If you like it, you don't have to add it. I'll do it on the weekend and > contribute it to your cvs. Please do contribute to our cvs. Whilst it's not using the layout that you advocate (.impl etc), it's probably better for you to use our cvs (or vice versa) than for you to port the code to your .impl and for us to carry on using our layout. Let's get the widgets completed. Then we can move it to a different layout. :) _______________________________________________ http://lists.xwt.org/listinfo/dev