Re: PATCH: Bug 186

David Crawshaw <[email protected]>
Newsgroups gmane.comp.java.xwt.general
Message-ID <[email protected]>
On Monday, March 24, 2003, at 10:50  PM, Charles Goodwin wrote:
> Hence I'm using the notation:
>
> <scrollpane>
> 	<box/>					// goes in central pane
> 	<box/>					// goes in central pane
> 	<box scrollpane_tag="west" />		// goes in western pane
> 	<box/>					// goes in central pane
> 	<box scrollpane_tag="north" />	// goes in northern pane
> </scrollpane>

You see, I believe this does violate the XWT Way, as laid down by Adam 
in about Sep 2002 (check the dev archives, right before the Child 
Redirect Wrapper thread).

Say it looked like this:

<scrollpane id="s">
	<box/>					// goes in central pane
	<box/>					// goes in central pane
	<box scrollpane_tag="west" />		// goes in western pane
	<box id="myBox"/>			// goes in central pane
	<box scrollpane_tag="north" />	// goes in northern pane
</scrollpane>

$s[3] references $myBox right? Nope. Suddenly, the scroll pane behaves 
differently to all the other panes. Extra functionality should be 
implemented in an extra way:

<scrollpane id="s">
	<box/><box/></box id="myBox"/>
</scrollpane>

$s.west = myWestBox;
$s.north = myNorthBox;

That way, things are where you put them.

d


_______________________________________________
http://lists.xwt.org/listinfo/dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.