summaryrefslogtreecommitdiffstats
path: root/tests/button.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-11-17 22:44:04 (GMT)
committerhobbs <hobbs>2001-11-17 22:44:04 (GMT)
commit4bd4c9a955977c457ddf8795c30e14681c135966 (patch)
tree7c838c6b24a2cd0a0dec95394c742f7c6629e2a8 /tests/button.test
parent8d9513343233733ed7901dd08168ad51e8560837 (diff)
downloadtk-4bd4c9a955977c457ddf8795c30e14681c135966.zip
tk-4bd4c9a955977c457ddf8795c30e14681c135966.tar.gz
tk-4bd4c9a955977c457ddf8795c30e14681c135966.tar.bz2
* win/tkWinButton.c (TkpComputeButtonGeometry): corrected the
default size of Windows buttons to conform to the Windows style. This changes the default size of buttons on Windows. [Patch #463234] (nelson) **** POTENTIAL VISUAL INCOMPATABILITY ****
Diffstat (limited to 'tests/button.test')
-rw-r--r--tests/button.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/button.test b/tests/button.test
index 543f595..67f019b 100644
--- a/tests/button.test
+++ b/tests/button.test
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: button.test,v 1.9 2000/05/25 16:57:24 ericm Exp $
+# RCS: @(#) $Id: button.test,v 1.10 2001/11/17 22:44:04 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -749,7 +749,9 @@ test button-11.1 {ButtonTextVarProc procedure} {
} {Label Label New}
test button-11.2 {ButtonTextVarProc procedure} {
eval destroy [winfo children .]
- set x Label
+ # Windows buttons have a default min width, so we have to
+ # set this to be longer to force the wider button.
+ set x ExtraLongLabel
button .b1 -textvariable x
set old [winfo reqwidth .b1]
set x New