summaryrefslogtreecommitdiffstats
path: root/library/msgbox.tcl
diff options
context:
space:
mode:
authordas <das>2007-05-30 06:34:18 (GMT)
committerdas <das>2007-05-30 06:34:18 (GMT)
commiteea3d8a589c007592691cf767336a06b0f600c50 (patch)
tree7f71d977d1684d7ab7abab1184b5b9882d32d329 /library/msgbox.tcl
parentedeaa5c2c7150918146c96bac23523101fed2e8c (diff)
downloadtk-eea3d8a589c007592691cf767336a06b0f600c50.zip
tk-eea3d8a589c007592691cf767336a06b0f600c50.tar.gz
tk-eea3d8a589c007592691cf767336a06b0f600c50.tar.bz2
* library/bgerror.tcl: standardize dialog option & button size
* library/dialog.tcl: modifications done when running on on Aqua. * library/msgbox.tcl: * library/demos/button.tcl: set button highlightbackground on Aqua.
Diffstat (limited to 'library/msgbox.tcl')
-rw-r--r--library/msgbox.tcl17
1 files changed, 15 insertions, 2 deletions
diff --git a/library/msgbox.tcl b/library/msgbox.tcl
index 3d8c62d..d2980d7 100644
--- a/library/msgbox.tcl
+++ b/library/msgbox.tcl
@@ -3,7 +3,7 @@
# Implements messageboxes for platforms that do not have native
# messagebox support.
#
-# RCS: @(#) $Id: msgbox.tcl,v 1.30 2006/01/25 18:22:04 dgp Exp $
+# RCS: @(#) $Id: msgbox.tcl,v 1.31 2007/05/30 06:34:18 das Exp $
#
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
#
@@ -165,6 +165,9 @@ proc ::tk::MessageBox {args} {
"warning" {set data(-icon) "caution"}
"info" {set data(-icon) "note"}
}
+ option add *Dialog*background systemDialogBackgroundActive widgetDefault
+ option add *Dialog*Button.highlightBackground \
+ systemDialogBackgroundActive widgetDefault
}
if {![winfo exists $data(-parent)]} {
@@ -264,7 +267,7 @@ proc ::tk::MessageBox {args} {
}
if {$windowingsystem eq "aqua"} {
- unsupported::MacWindowStyle style $w dBoxProc
+ ::tk::unsupported::MacWindowStyle style $w moveableModal {}
}
frame $w.bot -background $bg
@@ -368,6 +371,16 @@ proc ::tk::MessageBox {args} {
}
grid $w.$name -in $w.bot -row 0 -column $i -padx 3m -pady 2m -sticky ew
grid columnconfigure $w.bot $i -uniform buttons
+ # We boost the size of some Mac buttons for l&f
+ if {$windowingsystem eq "aqua"} {
+ set tmp [string tolower $name]
+ if {$tmp eq "ok" || $tmp eq "cancel" || $tmp eq "yes" ||
+ $tmp eq "no" || $tmp eq "abort" || $tmp eq "retry" ||
+ $tmp eq "ignore"} {
+ grid columnconfigure $w.bot $i -minsize 90
+ }
+ grid configure $w.$name -pady 7
+ }
incr i
# create the binding for the key accelerator, based on the underline