# Copyright (c) 1992 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # RCS: @(#) $Id: panedwindow.n,v 1.2.2.1 2003/07/17 20:49:00 dkf Exp $ =head1 NAME Tk::Panedwindow - Create and manipulate Panedwindow widgets =for category Tk Generic Methods =head1 SYNOPSIS I<$panedwindow> = I<$parent>-EB(?I?); -background -height -width -borderwidth -orient -cursor -relief =head1 WIDGET-SPECIFIC OPTIONS =over 4 =item Option: B<-handlepad> =item Name: B =item Class: B When sash handles are drawn, specifies the distance from the top or left end of the sash (depending on the orientation of the widget) at which to draw the handle. May be any value accepted by B. =item Option: B<-handlesize> =item Name: B =item Class: B Specifies the side length of a sash handle. Handles are always drawn as squares. May be any value accepted by B. =item Option: B<-opaqueresize> =item Name: B =item Class: B Specifies whether panes should be resized as a sash is moved (true), or if resizing should be deferred until the sash is placed (false). =item Option: B<-sashcursor> =item Name: B =item Class: B Mouse cursor to use when over a sash. If null, B will be used for horizontal Panedwindows, and B will be used for vertical Panedwindows. =item Option: B<-sashpad> =item Name: B =item Class: B Specifies the amount of padding to leave of each side of a sash. May be any value accepted by B. =item Option: B<-sashrelief> =item Name: B =item Class: B Relief to use when drawing a sash. May be any of the standard Tk relief values. =item Option: B<-sashwidth> =item Name: B =item Class: B Specifies the width of each sash. May be any value accepted by B. =item Option: B<-showhandle> =item Name: B =item Class: B Specifies whether sash handles should be shown. May be any valid boolean value. =back =head1 DESCRIPTION The B method creates a new window (given by the $panedwindow argument) and makes it into a Panedwindow widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the Panedwindow such as its default background color and relief. A Panedwindow widget contains any number of panes, arranged horizontally or vertically, according to the value of the B<-orient> option. Each pane contains one widget, and each pair of panes is separated by a moveable (via mouse movements) sash. Moving a sash causes the widgets on either side of the sash to be resized. =head1 WIDGET METHODS The B method may be used to invoke various operations on the widget. It has the following general form: $widget->method(?arg arg ...?); The following commands are possible for Panedwindow widgets: =over 4 =item I<$widget>-EB(?window ...? ?option value ...?); Add one or more windows to the Panedwindow, each in a separate pane. The arguments consist of the names of one or more windows followed by pairs of arguments that specify how to manage the windows. I