Re: panedwindows?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: panedwindows?

From: Francois Vogel <fsvogelnew5NOSPAM@free.fr>
Date: Wed Jun 29 2005 - 23:32:24 CEST

> After adding the panes, after creating all widgets inside the toplevel
> window, I set the width fo the panes via the subcommand "paneconfigure"
> but ... nothing changed!

Three comments:

1.
-width is only the *initial* width of the panes. After having been set by
the script, the packer algorithm might change its value to fit other
geometry needs.
That's at least what I have understood from what I was told in a bug I
opened some time ago at Sourceforge:
https://sourceforge.net/tracker/index.php?func=detail&aid=1192323&group_id=12997&atid=112997

2.
As far as I have understood the algorithm for panedwindows, it is always the
last (i.e. rightmost or bottommost) pane size that gets adjusted
automatically when the containing toplevel is resized manually by the user.
This is indeed stated in the help page, but I needed some time to understand
all (well, let's rather say most of) the implications of this little
sentence.
You can get some control on what is done on a resize by binding a script to
the <Configure> event triggered for the toplevel that contains your
panedwindow.

3.
You should probably use very recent versions of Tcl/Tk, e.g. 8.4.10, or even
8.5a3, because some bugs around panedwindows were fixed recently (see patch
1124198). 8.5a3 has the extra benefit of providing more options than 8.4.x
(e.g. -hide) at the cost of the usual drawbacks of such alpha releases.

HTH.
Francois
Received on Thu Sep 29 14:23:52 2005