two_splitter(n) manual page

Back to the Index
Table of Contents

Name

two_splitter - Panned widget geometry manager

Synopsis

package require twoSplitter ?1.0?
two_splitter pathName ?options?

Description

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.

Commands

The mdi widget command takes the following commands (as the first argument):
two_splitter slave ?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 forget slave ?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 slaves master
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 configure slave ?options?
Configure the look and feel of the handle between the slave widget and the next one (added just after this one).
two_splitter cget slave option
Return configuration option of the slave widget.

Options

The two_splitter command takes the following options:
-style style
Set the style of the Splitter: unix for more UNIX-like or windows for a look and feel like on windows.
-orient orientation
Set the orientation of the splitter: horizontal or vertical. Please note that all splitters within one frame will have the same orientation.
-dynamic TCL_BOOLEAN
Whether or not the panes should dynamically be resized when dragging the splitter.

Elements

Slave widgets are really managed by the 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).

Author

Frank J. Leitner
frank@fjl.de

See Also

place(n) .


Table of Contents


Back to the Index