summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2008-05-11 00:12:01 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2008-05-11 00:12:01 (GMT)
commit92a1564dea06b0ff57f2c4b6baa85de82e26ce54 (patch)
tree56d1b28d79f88df6e87dc09bae9cff0234ce0c76
parent38ef6a506f242815f3c11aaa905f65d68dd5793c (diff)
downloadtk-92a1564dea06b0ff57f2c4b6baa85de82e26ce54.zip
tk-92a1564dea06b0ff57f2c4b6baa85de82e26ce54.tar.gz
tk-92a1564dea06b0ff57f2c4b6baa85de82e26ce54.tar.bz2
Note negative widths for button
-rw-r--r--ChangeLog4
-rw-r--r--doc/button.n8
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 39c1746..2854250 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-05-11 Pat Thoyts <patthoyts@users.sourceforge.net>
+
+ * doc/button.n: Note negative widths for button [Patch #1883418]
+
2008-05-09 Pat Thoyts <patthoyts@users.sourceforge.net>
* doc/ttk_*: 'identify' widget command is on all ttk widgets.
diff --git a/doc/button.n b/doc/button.n
index 2935c48..1a7d2ec 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.16 2008/04/20 19:19:23 patthoyts Exp $
+'\" RCS: @(#) $Id: button.n,v 1.17 2008/05/11 00:12:02 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