Tcl8.6.10/Tk8.6.10 Documentation > Tk Commands > ttk_panedwindow
Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API
- NAME
- ttk::panedwindow — Multi-pane container window
- SYNOPSIS
- DESCRIPTION
- STANDARD OPTIONS
- -class, undefined, undefined
- -cursor, cursor, Cursor
- -style, style, Style
- -takefocus, takeFocus, TakeFocus
- -cursor, cursor, Cursor
- WIDGET-SPECIFIC OPTIONS
- PANE OPTIONS
- WIDGET COMMAND
- VIRTUAL EVENTS
- STYLING OPTIONS
- SEE ALSO
NAME
ttk::panedwindow — Multi-pane container windowSYNOPSIS
ttk::panedwindow pathname ?options?pathname add window ?options...?
pathname insert index window ?options...?
DESCRIPTION
A ttk::panedwindow widget displays a number of subwindows, stacked either vertically or horizontally. The user may adjust the relative sizes of the subwindows by dragging the sash between panes.STANDARD OPTIONS
- -class, undefined, undefined
- -cursor, cursor, Cursor
- -style, style, Style
- -takefocus, takeFocus, TakeFocus
- -cursor, cursor, Cursor
WIDGET-SPECIFIC OPTIONS
- Command-Line Name: -orient
- Database Name: orient
- Database Class: Orient
- Database Name: orient
- Specifies the orientation of the window. If vertical, subpanes are stacked top-to-bottom; if horizontal, subpanes are stacked left-to-right.
- Command-Line Name: -width
- Database Name: width
- Database Class: Width
- Database Name: width
- If present and greater than zero, specifies the desired width of the widget in pixels. Otherwise, the requested width is determined by the width of the managed windows.
- Command-Line Name: -height
- Database Name: height
- Database Class: Height
- Database Name: height
- If present and greater than zero, specifies the desired height of the widget in pixels. Otherwise, the requested height is determined by the height of the managed windows.
PANE OPTIONS
The following options may be specified for each pane:- Command-Line Name: -weight
- Database Name: weight
- Database Class: Weight
- Database Name: weight
- An integer specifying the relative stretchability of the pane. When the paned window is resized, the extra space is added or subtracted to each pane proportionally to its -weight.
WIDGET COMMAND
Supports the standard configure, cget, state, and instate commands; see ttk::widget(n) for details. Additional commands:
The panedwindow widget also supports the following generic ttk::widget widget subcommands (see ttk::widget(n) for details):
cget
configure
instate
state
VIRTUAL EVENTS
The panedwindow widget generates an <<EnteredChild>> virtual event on LeaveNotify/NotifyInferior events, because Tk does not execute binding scripts for <Leave> events when the pointer crosses from a parent to a child. The panedwindow widget needs to know when that happens.STYLING OPTIONS
The class name for a ttk::panedwindow is TPanedwindow. The sash has a class name of Sash.TPanedwindow styling options configurable with ttk::style are:
-background color
Sash styling options configurable with ttk::style are:
-background color
-bordercolor color
-gripcount count
-handlepad amount
-handlesize amount
-lightcolor color
-sashpad amount
-sashrelief relief
-sashthickness amount
Some options are only available for specific themes.
See the ttk::style manual page for information on how to configure ttk styles.
SEE ALSO
ttk::widget, ttk::notebook, panedwindowCopyright © 2005 Joe English