head	1.10;
access;
symbols
	core-8-5-9:1.8
	core-8-5-8:1.8
	macosx-cocoa-merge:1.10
	macosx-cocoa-premerge:1.10
	macosx-carbon-freeze:1.10
	core-8-5-7:1.8
	core-8-5-6:1.8
	core-8-6-b1:1.10
	core-8-6-a3:1.10
	core-8-5-5:1.8
	core-8-6-a2:1.9
	core-8-5-4:1.8
	core-8-5-3:1.8
	core-8-6-a1:1.8
	core-8-4-19:1.1
	core-8-5-branch:1.8.0.2
	core-8-5-2:1.8
	core-8-4-18:1.1
	core-8-5-1:1.8
	core-8-4-17:1.1
	core-8-5-0:1.8
	core-8-5-b3:1.7
	core-8-5-b2:1.5
	core-8-4-16:1.1
	core-8-5-b1:1.3
	core-stablilizer-merge:1.3
	core-stabilizer-branch:1.3.0.2
	core-stabilizer-merge:1.8
	core-8-4-15:1.1
	core-8-5-a6:1.3
	core-8-5-a5:1.1
	core-8-4-14:1.1
	core-8-5-a4:1.1
	core-8-4-13:1.1
	core-8-4-12:1.1
	core-8-4-11:1.1
	core-8-5-a3:1.1
	core-8-4-10:1.1
	core-8-4-9-branch:1.1.0.10
	core-8-5-a2:1.1
	core-8-4-9:1.1
	core-8-4-8:1.1
	core-8-4-7:1.1
	core-8-5-a1:1.1
	core-8-4-6:1.1
	core-8-4-5:1.1
	mistachkin-dev-branch:1.1.0.8
	core-8-4-4:1.1
	core-8-4-3:1.1
	core-8-4-branch:1.1.0.6
	core-8-4-2:1.1
	core-8-4-1:1.1
	core-8-4-0:1.1
	macosx-8-4-merge-2002-08-31-trunk:1.1
	macosx-8-4-premerge-2002-08-31-branch:1.1
	macosx-8-4-premerge-2002-08-31-trunk:1.1
	macosx-8-4-merge-2002-08-30-branch:1.1
	macosx-8-4-merge-2002-08-30-trunk:1.1
	macosx-8-4-merge-2002-08-20-branch:1.1
	macosx-8-4-merge-2002-08-20-trunk:1.1
	core-8-4-b2:1.1
	core-8-4-b1:1.1
	macosx-premerge-6-9-02:1.1
	core-8-4-win-speedup:1.1.0.4
	core-8-4-a4:1.1
	macosx-8-4-branch:1.1.0.2
	macosx-8-4-branchpoint:1.1;
locks; strict;
comment	@# @;


1.10
date	2008.09.23.13.36.41;	author dkf;	state Exp;
branches;
next	1.9;

1.9
date	2008.06.30.22.57.02;	author dkf;	state Exp;
branches;
next	1.8;

1.8
date	2007.12.13.15.23.43;	author dgp;	state Exp;
branches;
next	1.7;

1.7
date	2007.11.01.10.59.42;	author dkf;	state Exp;
branches;
next	1.6;

1.6
date	2007.10.29.16.04.13;	author dkf;	state Exp;
branches;
next	1.5;

1.5
date	2007.10.26.20.13.23;	author dgp;	state Exp;
branches;
next	1.4;

1.4
date	2007.10.22.14.33.13;	author dkf;	state Exp;
branches;
next	1.3;

1.3
date	2006.12.13.23.04.32;	author hobbs;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2006.11.16.11.22.32;	author dkf;	state Exp;
branches;
next	1.1;

1.1
date	2001.09.26.21.36.19;	author pspjuth;	state Exp;
branches
	1.1.4.1;
next	;

1.1.4.1
date	2002.04.02.20.57.53;	author hobbs;	state Exp;
branches;
next	;

1.3.2.1
date	2007.10.24.12.59.31;	author dgp;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2007.10.27.04.23.14;	author dgp;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	2007.11.01.16.37.14;	author dgp;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Fix [Bug 2118116]
@
text
@'\"
'\" Copyright (c) 1990-1994 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: labelframe.n,v 1.9 2008/06/30 22:57:02 dkf Exp $
'\" 
.so man.macros
.TH labelframe n 8.4 Tk "Tk Built-In Commands"
.BS
'\" Note:  do not modify the .SH NAME line immediately below!
.SH NAME
labelframe \- Create and manipulate labelframe widgets
.SH SYNOPSIS
\fBlabelframe\fR \fIpathName\fR ?\fIoptions\fR?
.SO
\-borderwidth	\-highlightbackground	\-pady
\-cursor	\-highlightcolor	\-relief
\-font	\-highlightthickness	\-takefocus
\-foreground	\-padx	\-text
.SE
.SH "WIDGET-SPECIFIC OPTIONS"
.OP \-background background Background
This option is the same as the standard \fBbackground\fR option
except that its value may also be specified as an empty string.
In this case, the widget will display no background or border, and
no colors will be consumed from its colormap for its background
and border.
.OP \-class class Class
Specifies a class for the window.
This class will be used when querying the option database for
the window's other options, and it will also be used later for
other purposes such as bindings.
The \fBclass\fR option may not be changed with the \fBconfigure\fR
widget command.
.OP \-colormap colormap Colormap
Specifies a colormap to use for the window.
The value may be either \fBnew\fR, in which case a new colormap is
created for the window and its children, or the name of another
window (which must be on the same screen and have the same visual
as \fIpathName\fR), in which case the new window will use the colormap
from the specified window.
If the \fBcolormap\fR option is not specified, the new window
uses the same colormap as its parent.
This option may not be changed with the \fBconfigure\fR
widget command.
.OP \-container container Container
The value must be a boolean.  If true, it means that this window will
be used as a container in which some other application will be embedded
(for example, a Tk toplevel can be embedded using the \fB\-use\fR option).
The window will support the appropriate window manager protocols for
things like geometry requests.  The window should not have any
children of its own in this application.
This option may not be changed with the \fBconfigure\fR
widget command.
.OP \-height height Height
Specifies the desired height for the window in any of the forms
acceptable to \fBTk_GetPixels\fR.
If this option is less than or equal to zero then the window will
not request any size at all.
.OP \-labelanchor labelAnchor LabelAnchor
Specifies where to place the label. A label is only displayed if the
\fB\-text\fR option is not the empty string.
Valid values for this option are (listing them clockwise)
\fBnw\fR, \fBn\fR, \fBne\fR, \fBen\fR, \fBe\fR, \fBes\fR,
\fBse\fR, \fBs\fR,\fBsw\fR, \fBws\fR, \fBw\fR and \fBwn\fR.
The default value is \fBnw\fR.
.OP \-labelwidget labelWidget LabelWidget
Specifies a widget to use as label. This overrides any \fB\-text\fR
option. The widget must exist before being used as \fB\-labelwidget\fR
and if it is not a descendant of this window, it will be raised
above it in the stacking order.
.OP \-visual visual Visual
Specifies visual information for the new window in any of the
forms accepted by \fBTk_GetVisual\fR.
If this option is not specified, the new window will use the same
visual as its parent.
The \fBvisual\fR option may not be modified with the \fBconfigure\fR
widget command.
.OP \-width width Width
Specifies the desired width for the window in any of the forms
acceptable to \fBTk_GetPixels\fR.
If this option is less than or equal to zero then the window will
not request any size at all.
.BE
.SH DESCRIPTION
.PP
The \fBlabelframe\fR command creates a new window (given by the
\fIpathName\fR argument) and makes it into a labelframe widget.
Additional
options, described above, may be specified on the command line
or in the option database
to configure aspects of the labelframe such as its background color
and relief.  The \fBlabelframe\fR command returns the
path name of the new window.
.PP
A labelframe is a simple widget.  Its primary purpose is to act as a
spacer or container for complex window layouts.  It has the features
of a \fBframe\fR plus the ability to display a label.
.SH "WIDGET COMMAND"
.PP
The \fBlabelframe\fR command creates a new Tcl command whose
name is the same as the path name of the labelframe's window.  This
command may be used to invoke various
operations on the widget.  It has the following general form:
.CS
\fIpathName option \fR?\fIarg arg ...\fR?
.CE
\fIPathName\fR is the name of the command, which is the same as
the labelframe widget's path name.  \fIOption\fR and the \fIarg\fRs
determine the exact behavior of the command.  The following
commands are possible for frame widgets:
.TP
\fIpathName \fBcget\fR \fIoption\fR
Returns the current value of the configuration option given
by \fIoption\fR.
\fIOption\fR may have any of the values accepted by the \fBlabelframe\fR
command.
.TP
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
Query or modify the configuration options of the widget.
If no \fIoption\fR is specified, returns a list describing all of
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
information on the format of this list).  If \fIoption\fR is specified
with no \fIvalue\fR, 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 \fIoption\fR is specified).  If
one or more \fIoption\-value\fR 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.
\fIOption\fR may have any of the values accepted by the \fBlabelframe\fR
command.
.SH BINDINGS
.PP
When a new labelframe is created, it has no default event bindings:
labelframes are not intended to be interactive.
.SH EXAMPLE
.PP
This shows how to build part of a GUI for a hamburger vendor. The
\fBlabelframe\fR widgets are used to organize the available choices by
the kinds of things that the choices are being made over.
.PP
.CS
grid [\fBlabelframe\fR .burger \-text "Burger"] \e
     [\fBlabelframe\fR .bun    \-text "Bun"] \-sticky news
grid [\fBlabelframe\fR .cheese \-text "Cheese Option"] \e
     [\fBlabelframe\fR .pickle \-text "Pickle Option"] \-sticky news
foreach {type name val} {
    burger Beef    beef
    burger Lamb    lamb
    burger Vegetarian beans

    bun    Plain   white
    bun    Sesame  seeds
    bun    Wholemeal brown

    cheese None    none
    cheese Cheddar cheddar
    cheese Edam    edam
    cheese Brie    brie
    cheese Gruy\eu00e8re gruyere
    cheese "Monterey Jack" jack

    pickle None    none
    pickle Gherkins gherkins
    pickle Onions  onion
    pickle Chili   chili
} {
    set w [radiobutton .$type.$val \-text $name \-anchor w \e
            \-variable $type \-value $val]
    pack $w \-side top \-fill x
}
set burger beef
set bun    white
set cheese none
set pickle none
.CE
.SH "SEE ALSO"
frame(n), label(n), ttk::labelframe(n)
.SH KEYWORDS
labelframe, widget
'\" Local Variables:
'\" mode: nroff
'\" End:
@


1.9
log
@Minor doc updates (removing out of date changebars, improving typedef formatting,
 etc.)
@
text
@a0 1
'\" -*- nroff -*-
d8 1
a8 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.8 2007/12/13 15:23:43 dgp Exp $
d184 3
@


1.8
log
@merge stable branch onto HEAD
@
text
@d1 1
d9 1
a9 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.3.2.3 2007/11/01 16:37:14 dgp Exp $
d141 1
@


1.7
log
@Make documentation use the name that scripts use as much as possible.
[Bug 1640073]
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.6 2007/10/29 16:04:13 dkf Exp $
@


1.6
log
@Lots more GOOBE stuff. Now works with 'make html'!
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.5 2007/10/26 20:13:23 dgp Exp $
a87 1

a178 1

d180 1
a180 2
frame(n), label(n), ttk_labelframe(n)

@


1.5
log
@        * doc/*.1:              Revert doc changes that broke
        * doc/*.3:              `make html` so we can get the release
        * doc/*.n:              out the door.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.3 2006/12/13 23:04:32 hobbs Exp $
d146 4
a149 4
grid [\fBlabelframe\fR .burger -text "Burger"] \\
     [\fBlabelframe\fR .bun    -text "Bun"] -sticky news
grid [\fBlabelframe\fR .cheese -text "Cheese Option"] \\
     [\fBlabelframe\fR .pickle -text "Pickle Option"] -sticky news
d163 1
a163 1
    cheese Gruy\\u00e8re gruyere
d171 3
a173 3
    set w [radiobutton .$type.$val -text $name -anchor w \\
            -variable $type -value $val]
    pack $w -side top -fill x
@


1.4
log
@Documentation improvements, all minor.
@
text
@d146 1
a146 1
grid [\fBlabelframe\fR .burger -text "Burger"] \e
d148 1
a148 1
grid [\fBlabelframe\fR .cheese -text "Cheese Option"] \e
d171 1
a171 1
    set w [radiobutton .$type.$val -text $name -anchor w \e
@


1.3
log
@	* unix/Makefile.in (install-doc): intentionally skip ttk_dialog.n
	installation (not for public consumption)

	* doc/scrollbar.n, doc/button.n, doc/checkbutton.n:
	* doc/entry.n, doc/frame.n, doc/label.n, doc/labelframe.n:
	* doc/menu.n, doc/menubutton.n, doc/panedwindow.n:
	* doc/radiobutton.n, doc/scrollbar.n, doc/ttk_*: revamp ttk docs
	to use consist nroff format (not 100% consistent with classic
	widget docs).  Add more man page cross-linking "SEE ALSO".
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.2 2006/11/16 11:22:32 dkf Exp $
d146 1
a146 1
grid [\fBlabelframe\fR .burger -text "Burger"] \\
d148 1
a148 1
grid [\fBlabelframe\fR .cheese -text "Cheese Option"] \\
d171 1
a171 1
    set w [radiobutton .$type.$val -text $name -anchor w \\
@


1.3.2.1
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.3 2006/12/13 23:04:32 hobbs Exp $
d146 1
a146 1
grid [\fBlabelframe\fR .burger -text "Burger"] \e
d148 1
a148 1
grid [\fBlabelframe\fR .cheese -text "Cheese Option"] \e
d171 1
a171 1
    set w [radiobutton .$type.$val -text $name -anchor w \e
@


1.3.2.2
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.3.2.1 2007/10/24 12:59:31 dgp Exp $
d146 1
a146 1
grid [\fBlabelframe\fR .burger -text "Burger"] \\
d148 1
a148 1
grid [\fBlabelframe\fR .cheese -text "Cheese Option"] \\
d171 1
a171 1
    set w [radiobutton .$type.$val -text $name -anchor w \\
@


1.3.2.3
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id$
d88 1
d146 4
a149 4
grid [\fBlabelframe\fR .burger \-text "Burger"] \e
     [\fBlabelframe\fR .bun    \-text "Bun"] \-sticky news
grid [\fBlabelframe\fR .cheese \-text "Cheese Option"] \e
     [\fBlabelframe\fR .pickle \-text "Pickle Option"] \-sticky news
d163 1
a163 1
    cheese Gruy\eu00e8re gruyere
d171 3
a173 3
    set w [radiobutton .$type.$val \-text $name \-anchor w \e
            \-variable $type \-value $val]
    pack $w \-side top \-fill x
d180 1
d182 2
a183 1
frame(n), label(n), ttk::labelframe(n)
@


1.2
log
@Added example
@
text
@a6 1
'\" 
d8 1
a8 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.1 2001/09/26 21:36:19 pspjuth Exp $
d180 1
d182 2
a183 1
frame(n), label(n)
@


1.1
log
@Added labelframe widget. TIP#18.
@
text
@d9 1
a9 1
'\" RCS: @@(#) $Id$
a136 1

d141 18
d160 21
a182 1

@


1.1.4.1
log
@sync with head
@
text
@d9 1
a9 1
'\" RCS: @@(#) $Id: labelframe.n,v 1.1 2001/09/26 21:36:19 pspjuth Exp $
@

