The tixPanedWindow command creates a new Tcl command whose name is the same as the path name of the
PanedWindow widget's window. This command may be used to invoke various operations on the widget. It
has the following general form:
pathNameoption ?argarg...?
PathName is the name of the command, which is the same as the frame widget's path name. Option and the
args determine the exact behavior of the command. The following commands are possible for PanedWindow
widgets:
pathNameaddpaneName ?optionvalue...?
Adds a new pane subwidget with the name paneName into the PanedWindow widget. Additional
configuration options can be given to configure the new button subwidget. Three configuration
options are supported:
-afterpane
Specifies that the new pane should be placed after pane in the list of panes in this
PanedWindow widget.
-atinteger
Specifies the position of the new pane in the list of panes in this PanedWindow widget. 0
means the first position, 1 means the second, and so on. In addition, end means the end of
the list.
-beforepane
Specifies that the new pane should be placed before pane in the list of panes in this
PanedWindow widget.
-expandfactor
Specifies the expand/shrinkfactor of this pane. Factor must be a non-negative floating
point number. The default value is 0.0. The expand/shrink factor is used to calculate how
much each pane should grow or shrink when the size of the PanedWindow main window is
changed. When the main window expands/shrinks by n pixels, then pane i will grow/shrink by
about n*factor(i)/summation(factors), where factor(i) is the expand/shrink factor of
pane i and summation(factors) is the summation of the expand/shrink factors of all the
panes. If summation(factors) is 0.0, however, only the last visible pane will be grown or
shrunk.
-mininteger
Specifies the minimum size, in pixels, of the new pane; the default is 0.
-maxinteger
Specifies the maximum size, in pixels, of the new pane; the default is 10000.
-sizeinteger
Specifies the size, in pixels, of the new pane; if the -size option is not given, or set to
the empty string, the PanedWindow widget will use the natural size of the pane subwidget.
pathNamecgetoption
Returns the current value of the configuration option given by option. Option may be -min, -max
and/or -size, or any option accepted by the Tk frame widget.
pathNameconfigure ?option? ?valueoptionvalue...?
Query or modify the configuration options of the widget. If no option is specified, returns a
list describing all of the available options for pathName (see Tk_ConfigureInfo for information on
the format of this list). If option is specified with no value, then the command returns a list
describing the one named option (this list will be identical to the corresponding sublist of the
value returned if no option is specified). If one or more option-value pairs are specified, then
the command modifies the given widget option(s) to have the given value(s); in this case the
command returns an empty string. Option may be any of the non-static options of the PanedWindow
widget.
pathNamedeletepaneName
Removes the pane given by paneName and deletes its contents.
pathNameforgetpaneName
Removes the pane given by paneName but does not delete its contents. This pane can be later added
back to the PanedWindow widget by the manage method.
pathNamemanagepaneName ?optionvalue...?
Adds the pane given by paneName back to the PanedWindow widget. PaneName must be already
forgotten by the forget method. Additional option-value pairs, same as those accepted by the add
method, can be given to control the appearance and position of the pane.
pathNamepanecgetpaneNameoption
Returns the current value of the configuration option given by option in the pane given by
paneName. Option may have any of the values accepted by the add widget command.
pathNamepaneconfigurepaneName ?option? ?value...?
When no option is given, prints out the values of all options of this pane. If option is specified
with no value, then the command returns the current value of that option. If one or more
option-value pairs are specified, then the command modifies the given pane's option(s) to have the
given value(s); in this case the command returns an empty string. Option may be -min, -max and/or
-size, or any option accepted by the Tk frame widget. The sizes of the panes may be changed as a
result of calling the paneconfigure command.
pathNamepanes
Returns a list of the names of all panes.
pathNamesetsizepaneNamenewSize ?direction?
Sets the size of the pane specified by paneName to newSize. The direction parameter specifies in
which direction the pane should grow/shrink. Possible values are next: the pane will grow or
shrink by moving the boundary between itself and the pane to its right or bottom; prev: the pane
will grow or shrink by moving the boundary between itself and the pane to its left or top.
pathNamesubwidgetname?args?
When no options are given, returns the pathname of the subwidget of the specified name.
When options are given, the widget command of the specified subwidget will be called with these options.