|
From: Brian G. <bgr...@mo...> - 2005-03-14 22:32:55
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Joe English wrote:
<blockquote
cite="mid...@dr..."
type="cite">
<pre wrap="">Brian Griffin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Joe English wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> + Each pane has a -weight option, which is an integer value specifying
the relative amount to shrink or expand the pane when the
overall widget is resized. [...]
</pre>
</blockquote>
<pre wrap="">My experience has been that paned views, where there are more than one
pane that was not fixed, the panes would grow or shrink proportional to
their initial size when the window was resized. You can't get this
behavior with -weight. It's a subtle difference.
</pre>
</blockquote>
<pre wrap=""><!---->
Hm. When experimenting with it, I came to the opposite
conclusion -- it seemed to feel better to me if the extra
space were distributed equally across all panes regardless
of their initial size. (With one exception: if a pane is
completely collapsed, then it should stay collapsed even
if the overall window grows). OTOH, I was experimenting
with a contrived example, so I can't say for sure.
By far the most common cases are 2-pane layouts, and 3-pane
layouts with one vertical sash and one horizontal sash;
where in both cases there is exactly one stretchable pane
and the other(s) have fixed size. Next most common are
"studio"-type applications with multiple, multiply-nested,
user-configurable pane layouts; I confess I really don't
know what's reasonable there.
</pre>
</blockquote>
<br>
What I meant by "my experience" is that I looked at several non-Tk
applications and this is the behavior I saw. I believe most, if not
all, were 3 pane style layout, where two of the panes would grow/shrink
proportionally to their starting size.<br>
<br>
-Brian<br>
<br>
<pre class="moz-signature" cols="72">--
-------------------------------------------------------------
-- Mentor Graphics Corp. --
-- 8005 SW Boeckman Road 503.685.7000 tel --
-- Wilsonville, OR 97070 USA 503.685.0921 fax --
-------------------------------------------------------------
-- Technical support ............ <a class="moz-txt-link-freetext" href="mailto:su...@mo...">mailto:su...@mo...</a> --
-- Sales and marketing info ....... <a class="moz-txt-link-freetext" href="mailto:sa...@mo...">mailto:sa...@mo...</a> --
-- Licensing .................... <a class="moz-txt-link-freetext" href="mailto:li...@mo...">mailto:li...@mo...</a> --
-- Home Page ........................ <a class="moz-txt-link-freetext" href="http://www.model.com">http://www.model.com</a> --
-------------------------------------------------------------
</pre>
</body>
</html>
|