head	1.10;
access;
symbols
	core-8-5-9:1.9
	core-8-5-8:1.9
	macosx-cocoa-merge:1.10
	macosx-cocoa-premerge:1.10
	macosx-carbon-freeze:1.10
	core-8-5-7:1.9
	core-8-5-6:1.9
	core-8-6-b1:1.10
	core-8-6-a3:1.10
	core-8-5-5:1.9
	core-8-6-a2:1.10
	core-8-5-4:1.9
	core-8-5-3:1.9
	core-8-6-a1:1.9
	core-8-4-19:1.4.4.2
	core-8-5-branch:1.9.0.2
	core-8-5-2:1.9
	core-8-4-18:1.4.4.2
	core-8-5-1:1.9
	core-8-4-17:1.4.4.2
	core-8-5-0:1.9
	core-8-5-b3:1.8
	core-8-5-b2:1.7
	core-8-4-16:1.4.4.2
	core-8-5-b1:1.7
	core-stablilizer-merge:1.7
	core-stabilizer-branch:1.7.0.2
	core-stabilizer-merge:1.9
	core-8-4-15:1.4.4.2
	core-8-5-a6:1.7
	core-8-5-a5:1.7
	core-8-4-14:1.4.4.2
	core-8-5-a4:1.7
	core-8-4-13:1.4.4.2
	core-8-4-12:1.4.4.2
	core-8-4-11:1.4.4.2
	core-8-5-a3:1.7
	core-8-4-10:1.4.4.2
	core-8-4-9-branch:1.4.4.1.0.2
	core-8-5-a2:1.6
	core-8-4-9:1.4.4.1
	core-8-4-8:1.4.4.1
	core-8-4-7:1.4
	core-8-5-a1:1.4
	core-8-4-6:1.4
	core-8-4-5:1.4
	mistachkin-dev-branch:1.4.0.6
	core-8-4-4:1.4
	core-8-4-3:1.4
	core-8-4-branch:1.4.0.4
	core-8-4-2:1.4
	core-8-4-1:1.4
	core-8-3-5:1.2.18.1
	core-8-4-0:1.4
	macosx-8-4-merge-2002-08-31-trunk:1.4
	macosx-8-4-premerge-2002-08-31-branch:1.4
	macosx-8-4-premerge-2002-08-31-trunk:1.4
	macosx-8-4-merge-2002-08-30-branch:1.4
	macosx-8-4-merge-2002-08-30-trunk:1.4
	macosx-8-4-merge-2002-08-20-branch:1.4
	macosx-8-4-merge-2002-08-20-trunk:1.4
	core-8-4-b2:1.4
	core-8-4-b1:1.4
	macosx-premerge-6-9-02:1.4
	core-8-4-a4:1.4
	core-8-3-4:1.2.18.1
	macosx-8-4-branch:1.4.0.2
	macosx-8-4-branchpoint:1.4
	core-8-4-a3:1.3
	core-8-3-3:1.2.18.1
	dgp-privates-into-namespace:1.3.0.4
	tclpro-1-5-0:1.2
	core-8-4-win-speedup:1.3.0.2
	core-8-4-a2:1.3
	tclpro-1-4-1:1.2
	tclpro-1-4-0:1.2
	core-8-3-2:1.2
	ajuba-ajuba2-2-1-base:1.2
	ajuba-ajuba2-2-0:1.2
	core-8-4-a1:1.2
	core-8-3-1-branch:1.2.0.18
	core-8-3-1:1.2
	scriptics-sc-2-0-b5:1.2
	scriptics-sc-2-0-fixed:1.2
	scriptics-sc-2-0-b2:1.2
	scriptics-sc-2-0-b1:1.2
	core-8-3-0:1.2
	core-8-3-b2:1.2
	core-8-3-b1:1.2
	scriptics-sc-1-1:1.2
	scriptics-sc-1-1-b1:1.2
	core-8-2-3:1.2
	scriptics-sc-1-1-branch:1.2.0.16
	scriptics-sc-1-1-base:1.2
	scriptics-sc-1-0:1.2
	scriptics-sc-1-0-branch:1.2.0.14
	scriptics-sc-1-0-base:1.2
	core-8-2-2:1.2
	core-8-2-1:1.2
	scriptics-bc-1-0-b1:1.2
	core-8-2-1-branch:1.2.0.12
	scriptics-tclpro-1-3-0:1.2
	core-8-2-0:1.2
	core-8-2-b3-branch:1.2.0.10
	core-8-2-b3-base:1.2
	scriptics-tclpro-1-3-b4:1.2
	core-8-2-b2:1.2
	scriptics-tclpro-1-3-b3:1.2
	core-8-2-b1:1.2
	scriptics-tclpro-1-3-b2:1.2
	merge-to-mainline-5/21/99:1.2
	scriptics-tclpro-1-3-b2-branch:1.2.0.8
	core-8-1-1:1.2
	scriptics-tclpro-1-3-b1:1.2
	core-8-1-1-base:1.2
	core-8-1-0:1.2
	merge-to-mainline-4-29-99:1.2
	merge-to-mainline-4-23-99:1.2
	core-8-1-branch-old:1.1.0.4
	core-8-0-6-branch:1.2.0.6
	core-8-0-6-base:1.2
	core-8-0-5:1.2
	core-8-1-b3:1.1.4.1
	core-8-1-b2:1.1.4.1
	dev-8-1-stubs-branch:1.1.4.1.0.2
	dev-stubs-branch:1.2.0.4
	scriptics-tclpro-1-2:1.2
	scriptics-tclpro-1-2-b2:1.2
	core-8-1-merge-2/10/99:1.2
	core-8-0-5-branch:1.2.0.2
	core-8-0-5-base:1.2
	scriptics-tclpro-1-2-b1:1.2
	scriptics-tclpro-1-2-a1:1.2
	core-8-1-b1:1.1.4.1
	core-8-0-4:1.2
	core-8-1-a2:1.1
	core-8-0-2:1.1
	core-8-0-3:1.2;
locks; strict;
comment	@# @;


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

1.9
date	2007.12.13.15.23.44;	author dgp;	state Exp;
branches;
next	1.8;

1.8
date	2007.10.29.16.04.14;	author dkf;	state Exp;
branches;
next	1.7;

1.7
date	2005.01.05.16.40.39;	author dkf;	state Exp;
branches
	1.7.2.1;
next	1.6;

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

1.5
date	2004.03.25.12.12.36;	author vincentdarley;	state Exp;
branches;
next	1.4;

1.4
date	2001.09.26.21.36.19;	author pspjuth;	state Exp;
branches
	1.4.4.1;
next	1.3;

1.3
date	2000.08.25.06.58.33;	author ericm;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	98.09.14.18.23.00;	author stanton;	state Exp;
branches
	1.2.18.1;
next	1.1;

1.1
date	98.04.01.09.39.58;	author rjohnson;	state Exp;
branches
	1.1.4.1;
next	;

1.1.4.1
date	98.09.30.02.16.31;	author stanton;	state Exp;
branches;
next	;

1.2.18.1
date	2001.04.04.07.23.48;	author hobbs;	state Exp;
branches;
next	;

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

1.4.4.1
date	2004.10.28.12.25.22;	author dkf;	state Exp;
branches;
next	1.4.4.2;

1.4.4.2
date	2005.01.05.21.57.17;	author dkf;	state Exp;
branches;
next	;

1.7.2.1
date	2007.11.01.16.37.16;	author dgp;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Minor doc updates (removing out of date changebars, improving typedef formatting,
 etc.)
@
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: toplevel.n,v 1.9 2007/12/13 15:23:44 dgp Exp $
'\" 
.so man.macros
.TH toplevel n 8.4 Tk "Tk Built-In Commands"
.BS
'\" Note:  do not modify the .SH NAME line immediately below!
.SH NAME
toplevel \- Create and manipulate toplevel widgets
.SH SYNOPSIS
\fBtoplevel\fR \fIpathName \fR?\fIoptions\fR?
.SO
\-borderwidth	\-highlightcolor	\-pady
\-cursor	\-highlightthickness	\-relief
\-highlightbackground	\-padx	\-takefocus
.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 default colormap of its screen.
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 \-menu menu Menu
Specifies a menu widget to be used as a menubar. On the Macintosh, the
menubar will be displayed across the top of the main monitor. On
Microsoft Windows and all UNIX platforms, the menu will appear across
the toplevel window as part of the window dressing maintained by the
window manager.
.OP \-screen "" ""
Specifies the screen on which to place the new window.
Any valid screen name may be used, even one associated with a
different display.
Defaults to the same screen as its parent.
This option is special in that it may not be specified via the option
database, and it may not be modified with the \fBconfigure\fR
widget command.
.OP \-use use Use
This option is used for embedding. If the value is not an empty string,
it must be the window identifier of a container window, specified as
a hexadecimal string like the ones returned by the \fBwinfo id\fR
command. The toplevel widget will be created as a child of the given
container instead of the root window for the screen.  If the container
window is in a Tk application, it must be a frame or toplevel widget for
which the \fB\-container\fR option was specified.
This option may not be changed with the \fBconfigure\fR
widget command.
.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 default
visual for its screen.
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 \fBtoplevel\fR command creates a new toplevel widget (given
by the \fIpathName\fR argument).  Additional
options, described above, may be specified on the command line
or in the option database
to configure aspects of the toplevel such as its background color
and relief.  The \fBtoplevel\fR command returns the
path name of the new window.
.PP
A toplevel is similar to a frame except that it is created as a
top-level window:  its X parent is the root window of a screen
rather than the logical parent from its path name.  The primary
purpose of a toplevel is to serve as a container for dialog boxes
and other collections of widgets.  The only visible features
of a toplevel are its background color and an optional 3-D border
to make the toplevel appear raised or sunken.
.SH "WIDGET COMMAND"
.PP
The \fBtoplevel\fR command creates a new Tcl command whose
name is the same as the path name of the toplevel'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 toplevel widget's path name.  \fIOption\fR and the \fIarg\fRs
determine the exact behavior of the command.  The following
commands are possible for toplevel 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 \fBtoplevel\fR
command.
.TP
\fIpathName \fBconfigure\fR ?\fIoption\fR? ?\fIvalue 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 \fBtoplevel\fR
command.
.SH BINDINGS
.PP
When a new toplevel is created, it has no default event bindings:
toplevels are not intended to be interactive.
.SH "SEE ALSO"
frame(n)
.SH KEYWORDS
toplevel, widget
'\" Local Variables:
'\" mode: nroff
'\" End:
@


1.9
log
@merge stable branch onto HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.7.2.1 2007/11/01 16:37:16 dgp Exp $
a98 1

a115 1

a148 1

a152 1

a154 1

a156 1

@


1.8
log
@Lots more GOOBE stuff. Now works with 'make html'!
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.7 2005/01/05 16:40:39 dkf Exp $
@


1.7
log
@Move emacs mode comment to end of file to stop problems with old man.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.6 2004/09/01 09:37:57 dkf Exp $
d77 1
a77 1
This option is used for embedding. If the value isn't an empty string,
@


1.7.2.1
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.7 2005/01/05 16:40:39 dkf Exp $
d77 1
a77 1
This option is used for embedding. If the value is not an empty string,
@


1.6
log
@More doc fixes from Mikhail Kolesnitchenko
@
text
@a0 1
'\" -*- nroff -*-
d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.5 2004/03/25 12:12:36 vincentdarley Exp $
d162 4
@


1.5
log
@Fix typos in documentation
@
text
@d1 1
d9 1
a9 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.4 2001/09/26 21:36:19 pspjuth Exp $
d65 2
a66 2
menubar will be displayed accross the top of the main monitor. On
Microsoft Windows and all UNIX platforms, the menu will appear accross
@


1.4
log
@Added labelframe widget. TIP#18.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.3 2000/08/25 06:58:33 ericm Exp $
d78 1
a78 1
it must be the the window identifier of a container window, specified as
@


1.4.4.1
log
@More backporting of doc fixes
@
text
@a0 1
'\" -*- nroff -*-
d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.4 2001/09/26 21:36:19 pspjuth Exp $
d64 2
a65 2
menubar will be displayed across the top of the main monitor. On
Microsoft Windows and all UNIX platforms, the menu will appear across
d78 1
a78 1
it must be the window identifier of a container window, specified as
@


1.4.4.2
log
@Convert emacs mode comment style to stop problems with old man. [1085127]
@
text
@d1 1
d9 1
a9 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.4.4.1 2004/10/28 12:25:22 dkf Exp $
a162 4

'\" Local Variables:
'\" mode: nroff
'\" End:
@


1.3
log
@* doc/toplevel.n:
* doc/spinbox.n:
* doc/scrollbar.n:
* doc/scale.n:
* doc/menubutton.n:
* doc/menu.n:
* doc/listbox.n:
* doc/entry.n:
* doc/frame.n:
* doc/message.n:
* doc/checkbutton.n:
* doc/radiobutton.n:
* doc/button.n:
* doc/label.n:
* doc/canvas.n:
* doc/text.n: Fixed Standard Options section to make best use of
new tab settings in man.macros.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.2 1998/09/14 18:23:00 stanton Exp $
d11 1
a11 1
.TH toplevel n 8.0 Tk "Tk Built-In Commands"
d19 3
a21 3
\-borderwidth	\-highlightcolor	\-takefocus
\-cursor	\-highlightthickness
\-highlightbackground	\-relief
a47 1
.VS 8.0 br
a56 1
.VE
a61 1
.VS 8.0 br
a67 1
.VE
a75 1
.VS 8.0 br
a85 1
.VE
d156 3
@


1.3.2.1
log
@sync with head
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.4 2001/09/26 21:36:19 pspjuth Exp $
d11 1
a11 1
.TH toplevel n 8.4 Tk "Tk Built-In Commands"
d19 3
a21 3
\-borderwidth	\-highlightcolor	\-pady
\-cursor	\-highlightthickness	\-relief
\-highlightbackground	\-padx	\-takefocus
d48 1
d58 1
d64 1
d71 1
d80 1
d91 1
a161 3

.SH "SEE ALSO"
frame(n)
@


1.2
log
@Replaced SCCS strings, fixed binary files
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id$
d19 3
a21 2
\-borderwidth	\-highlightbackground	\-highlightthickness	\-takefocus
\-cursor	\-highlightcolor	\-relief
@


1.2.18.1
log
@doc cleanup and clarifications from 8.4aCVS backport
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.3 2000/08/25 06:58:33 ericm Exp $
d19 2
a20 3
\-borderwidth	\-highlightcolor	\-takefocus
\-cursor	\-highlightthickness
\-highlightbackground	\-relief
@


1.1
log
@Initial revision
@
text
@d8 1
a8 1
'\" SCCS: @@(#) toplevel.n 1.29 97/10/31 12:58:53
@


1.1.4.1
log
@Merged 8.0.3 changes into 8.1
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: toplevel.n,v 1.2 1998/09/14 18:23:00 stanton Exp $
@


