summaryrefslogtreecommitdiffstats
path: root/doc/grid.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-07-11 07:30:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-07-11 07:30:24 (GMT)
commit3daccd1085ac968f179ea7cd8e24707a89bb7466 (patch)
tree2acbbc456d90ad85b4a800aa97b23fd31c953d7e /doc/grid.n
parent4afddf85cdfd287a1e6d5d70a087a4b0f8853b81 (diff)
downloadtk-3daccd1085ac968f179ea7cd8e24707a89bb7466.zip
tk-3daccd1085ac968f179ea7cd8e24707a89bb7466.tar.gz
tk-3daccd1085ac968f179ea7cd8e24707a89bb7466.tar.bz2
[Bug 2818455]: Corrected example.
Diffstat (limited to 'doc/grid.n')
-rw-r--r--doc/grid.n7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/grid.n b/doc/grid.n
index 1ae1ea4..271e042 100644
--- a/doc/grid.n
+++ b/doc/grid.n
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: grid.n,v 1.20 2007/12/13 15:23:43 dgp Exp $
+'\" RCS: @(#) $Id: grid.n,v 1.20.2.1 2009/07/11 07:30:24 dkf Exp $
'\"
.so man.macros
.TH grid n 8.5 Tk "Tk Built-In Commands"
@@ -404,11 +404,13 @@ A toplevel window containing a text widget and two scrollbars:
# Make the widgets
toplevel .t
text .t.txt \-wrap none \-xscroll {.t.h set} \-yscroll {.t.v set}
-scrollbar .t.v \-orient vertical \-command {.t.txt xview}
+scrollbar .t.v \-orient vertical \-command {.t.txt yview}
scrollbar .t.h \-orient horizontal \-command {.t.txt xview}
+
# Lay them out
\fBgrid\fR .t.txt .t.v \-sticky nsew
\fBgrid\fR .t.h \-sticky nsew
+
# Tell the text widget to take all the extra room
\fBgrid rowconfigure\fR .t .t.txt \-weight 1
\fBgrid columnconfigure\fR .t .t.txt \-weight 1
@@ -421,6 +423,7 @@ widths:
button .b \-text "Foo"
entry .e \-variable foo
label .l \-text "This is a fairly long piece of text"
+
\fBgrid\fR .b .e .l \-sticky ew
\fBgrid columnconfigure\fR . "all" \-uniform allTheSame
.CE