summaryrefslogtreecommitdiffstats
path: root/doc/button.n
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2008-05-11 00:31:00 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2008-05-11 00:31:00 (GMT)
commitdd5b49b71b4faf956168e3bb8de662a3f418c239 (patch)
tree3b95c8a9fc0ad5e3217923cfb8ef4ccc544e918b /doc/button.n
parent6ea28a2b7d7514c4d22db3391f537fabb474ccfc (diff)
downloadtk-dd5b49b71b4faf956168e3bb8de662a3f418c239.zip
tk-dd5b49b71b4faf956168e3bb8de662a3f418c239.tar.gz
tk-dd5b49b71b4faf956168e3bb8de662a3f418c239.tar.bz2
Backported documentation fixes from HEAD
Diffstat (limited to 'doc/button.n')
-rw-r--r--doc/button.n8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/button.n b/doc/button.n
index 5855c49..3b2dbf3 100644
--- a/doc/button.n
+++ b/doc/button.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: button.n,v 1.15 2007/12/13 15:23:43 dgp Exp $
+'\" RCS: @(#) $Id: button.n,v 1.15.2.1 2008/05/11 00:31:00 patthoyts Exp $
'\"
.so man.macros
.TH button n 4.4 Tk "Tk Built-In Commands"
@@ -70,8 +70,10 @@ In this state the \fBdisabledForeground\fR and
.OP \-width width Width
Specifies a desired width for the button.
If an image or bitmap is being displayed in the button then the value is in
-screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR);
-for text it is in characters.
+screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR).
+For a text button (no image or with \fB\-compound none\fR) then the width
+specifies how much space in characters to allocate for the text label.
+If the width is negative then this specifies a minimum width.
If this option is not specified, the button's desired width is computed
from the size of the image or bitmap or text being displayed in it.
.BE