summaryrefslogtreecommitdiffstats
path: root/doc/place.n
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2004-06-21 15:21:24 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2004-06-21 15:21:24 (GMT)
commit439cbc4fa61842d5ce46834d2319dff434544791 (patch)
tree87770b6e07cf4edb4b44961625d3e6e9f96a02b2 /doc/place.n
parent22d5ed25dbae5c8e191cbb08aa5d34fd1458f953 (diff)
downloadtk-439cbc4fa61842d5ce46834d2319dff434544791.zip
tk-439cbc4fa61842d5ce46834d2319dff434544791.tar.gz
tk-439cbc4fa61842d5ce46834d2319dff434544791.tar.bz2
Added example
Diffstat (limited to 'doc/place.n')
-rw-r--r--doc/place.n25
1 files changed, 13 insertions, 12 deletions
diff --git a/doc/place.n b/doc/place.n
index 3a256e1..cd4fdd7 100644
--- a/doc/place.n
+++ b/doc/place.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: place.n,v 1.3 2000/08/10 00:21:06 ericm Exp $
+'\" RCS: @(#) $Id: place.n,v 1.4 2004/06/21 15:21:24 dkf Exp $
'\"
.so man.macros
.TH place n "" Tk "Tk Built-In Commands"
@@ -14,15 +14,7 @@
.SH NAME
place \- Geometry manager for fixed or rubber-sheet placement
.SH SYNOPSIS
-\fBplace \fIwindow option value \fR?\fIoption value ...\fR?
-.sp
-\fBplace configure \fIwindow \fR?\fIoption\fR? ?\fIvalue option value ...\fR?
-.sp
-\fBplace forget \fIwindow\fR
-.sp
-\fBplace info \fIwindow\fR
-.sp
-\fBplace slaves \fIwindow\fR
+\fBplace \fIoption arg \fR?\fIarg ...\fR?
.BE
.SH DESCRIPTION
@@ -203,13 +195,12 @@ command.
\fBplace slaves \fIwindow\fR
Returns a list of all the slave windows for which \fIwindow\fR is the master.
If there are no slaves for \fIwindow\fR then an empty string is returned.
-
+.PP
If the configuration of a window has been retrieved with
\fBplace info\fR, that configuration can be restored later by
first using \fBplace forget\fR to erase any existing information
for the window and then invoking \fBplace configure\fR with
the saved information.
-
.SH "FINE POINTS"
.PP
It is not necessary for the master window to be the parent
@@ -245,6 +236,16 @@ the master windows or the parents of slave windows (i.e. it doesn't
set their requested sizes).
To control the sizes of these windows, make them windows like
frames and canvases that provide configuration options for this purpose.
+.SH
+Make the label occupy the middle bit of the toplevel, no matter how it
+is resized:
+.CS
+label .l \-text "In the\nMiddle!" \-bg black \-fg white
+place .l \-relwidth .3 \-relx .35 \-relheight .3 \-rely .35
+.CE
+
+.SH "SEE ALSO"
+grid(n), pack(n)
.SH KEYWORDS
geometry manager, height, location, master, place, rubber sheet, slave, width