Re: PATCH: Bug 186

Charles Goodwin <[email protected]>
Newsgroups gmane.comp.java.xwt.general
Message-ID <308906BE5D07D5119285009027D61C5722F64E@NTFPS1>
I do accept what you say on this, that it's not the greatest method.

BUT

There is no otherway to express it in a simple manner that allows the
scrollpane to have horizontally or vertically interested children in
addition to the central 'slave' children.

I'm going to post a demo in a few hours.  If you look at that demo and tell
me you could acheive that with a similar level of simplicity, then I'll
listen.  Otherwise this is a pointless discussion because you're just
earmarking a problem without providing a solution.

AFAIC, presuming you can't show me a better way, then I'm going to make the
documentation clear on the usage of scrollpane_tag, that it will affect box
order.  I personally don't consider it a major issue.

-----Original Message-----
From: David Crawshaw [mailto:[email protected]]
Sent: 27 March 2003 04:25
To: [email protected]
Subject: Re: [xwt-dev] PATCH: Bug 186



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
_______________________________________________
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.