package require twoSplitter ?1.0?
two_splitter pathName ?options?
two_splitter might be called
an interactive geometry manager. Slave widgets (panes) are arranged in
rows or columns. The size of each pane can be controlled by draging the
resize handler between each pane. The two_splitter comes in two looks: UNIX (Motif) like and windows like.
mdi widget command takes
the following commands (as the first argument):
two_splitterslave ?slaves? ?options?- Add one or more slave widgets. They are always added at the end of the list of already existing panes. Fractions are resized to make place for the new panes.
two_splitter forgetslave ?slaves?- Remove slave widget(s) from list managed slaves. They are not destroyed, just unmanaged. Fractions of remaining panes are resized to fill the extra space.
two_splitter slavesmaster- Returns a list of all slaves of the master widget. The master widget is the parent widget of all panes added to it.
two_splitter configureslave ?options?- Configure the look and feel of the handle between the slave widget and the next one (added just after this one).
two_splitter cgetslave option- Return configuration option of the slave widget.
two_splitter
command takes the following options:
-stylestyle- Set the style of the Splitter:
unixfor more UNIX-like orwindowsfor a look and feel like on windows.-orientorientation- Set the orientation of the splitter:
horizontalorvertical. Please note that all splitters within one frame will have the same orientation.-dynamicTCL_BOOLEAN- Whether or not the panes should dynamically be resized when dragging the splitter.
place geometry manager. Only the handles for
resizing the panes are new widgets. In windows style, each handle is just
a single frame (class: TwoSplitter). When starting to resize, the background
color is set to black. In unix style, a handle consists of a separator
frame (class: TwoSplitterSep) and the handle itself (class: TwoSplitterHandle).
The handles are children of the master, with the additional pathname __h#
appended (the separator frame in unix style is named __h#_sep).