Re: PATCH: Bug 186
David Crawshaw <[email protected]>
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday, April 1, 2003, at 10:54 PM, Adam Megacz wrote: >> <scrollpane> >> <table/> >> </scrollpane> >> >> Where you want to get the table headers into the single-axis slaves of >> the scrollpane? > > Hrm, I don't quite understand here. Could you elaborate? Well you don't want the header (column names) of a table to scroll away. So to make them stick, you put the header into a x-axis slave. This way when you scroll right and left, the columns and their headers stay sync'ed, but when you scroll up and down, the headers stay on the screen. This header box is owned by <table/>. It has to somehow get into a special place in <scrollpane>, and it would be cool if it didn't require direct intervention. If the header is exposed as a box in a variable of <table>, then it could be picked up by <scrollpane> and made a child of the x-axis slave. When <table> was removed, _0 could remove the reference from the x-axis slave, keeping everything clean. This is the one advantage I can see in doing it this way as opposed to directly using _0 to read a variable in a child and move it. It allows children to provide boxes to go into the slaves automagically. True, _0 needs to move a box, but the box is an orphan in a variable, not a child with a parent. d _______________________________________________ http://lists.xwt.org/listinfo/dev