diff options
author | das <das> | 2007-05-30 06:34:18 (GMT) |
---|---|---|
committer | das <das> | 2007-05-30 06:34:18 (GMT) |
commit | eea3d8a589c007592691cf767336a06b0f600c50 (patch) | |
tree | 7f71d977d1684d7ab7abab1184b5b9882d32d329 /library/dialog.tcl | |
parent | edeaa5c2c7150918146c96bac23523101fed2e8c (diff) | |
download | tk-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/dialog.tcl')
-rw-r--r-- | library/dialog.tcl | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/library/dialog.tcl b/library/dialog.tcl index 44b89ec..0623b89 100644 --- a/library/dialog.tcl +++ b/library/dialog.tcl @@ -3,7 +3,7 @@ # This file defines the procedure tk_dialog, which creates a dialog # box containing a bitmap, a message, and one or more buttons. # -# RCS: @(#) $Id: dialog.tcl,v 1.21 2007/04/23 21:16:43 das Exp $ +# RCS: @(#) $Id: dialog.tcl,v 1.22 2007/05/30 06:34:18 das Exp $ # # Copyright (c) 1992-1993 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -45,6 +45,13 @@ proc ::tk_dialog {w title text bitmap default args} { set default [lsearch -exact $args $default] } + set windowingsystem [tk windowingsystem] + if {$windowingsystem eq "aqua"} { + option add *Dialog*background systemDialogBackgroundActive widgetDefault + option add *Dialog*Button.highlightBackground \ + systemDialogBackgroundActive widgetDefault + } + # 1. Create the top-level window and divide it into top # and bottom parts. @@ -65,12 +72,8 @@ proc ::tk_dialog {w title text bitmap default args} { wm transient $w [winfo toplevel [winfo parent $w]] } - set windowingsystem [tk windowingsystem] if {$windowingsystem eq "aqua"} { ::tk::unsupported::MacWindowStyle style $w moveableModal {} - option add *Dialog*background systemDialogBackgroundActive widgetDefault - option add *Dialog*Button.highlightBackground \ - systemDialogBackgroundActive widgetDefault } frame $w.bot @@ -121,7 +124,7 @@ proc ::tk_dialog {w title text bitmap default args} { if {$windowingsystem eq "aqua"} { set tmp [string tolower $but] if {$tmp eq "ok" || $tmp eq "cancel"} { - grid columnconfigure $w.bot $i -minsize [expr {59 + 20}] + grid columnconfigure $w.bot $i -minsize 90 } grid configure $w.button$i -pady 7 } |