diff options
author | hobbs <hobbs> | 2003-04-25 20:11:06 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-04-25 20:11:06 (GMT) |
commit | 94f0004d1b1634ee5ad20a7ba6c6609682457d62 (patch) | |
tree | c5a475019fce05c29153c651e59ad3108cb6ddc3 /library | |
parent | 1d5383aa9fda3bc96a7e01b9b9108377944dd7f7 (diff) | |
download | tk-94f0004d1b1634ee5ad20a7ba6c6609682457d62.zip tk-94f0004d1b1634ee5ad20a7ba6c6609682457d62.tar.gz tk-94f0004d1b1634ee5ad20a7ba6c6609682457d62.tar.bz2 |
* library/bgerror.tcl: make bgerror dialog topmost on Windows to
prevent it being covered by other windows.
Diffstat (limited to 'library')
-rw-r--r-- | library/bgerror.tcl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/library/bgerror.tcl b/library/bgerror.tcl index 0c423df..e0d32c7 100644 --- a/library/bgerror.tcl +++ b/library/bgerror.tcl @@ -9,8 +9,8 @@ # Copyright (c) 1998-2000 by Ajuba Solutions. # All rights reserved. # -# RCS: @(#) $Id: bgerror.tcl,v 1.23 2002/08/31 06:12:28 das Exp $ -# $Id: bgerror.tcl,v 1.23 2002/08/31 06:12:28 das Exp $ +# RCS: @(#) $Id: bgerror.tcl,v 1.23.2.1 2003/04/25 20:11:06 hobbs Exp $ +# $Id: bgerror.tcl,v 1.23.2.1 2003/04/25 20:11:06 hobbs Exp $ namespace eval ::tk { namespace eval dialog { @@ -140,7 +140,10 @@ proc ::tk::dialog::error::bgerror err { wm iconname .bgerrorDialog ErrorDialog wm protocol .bgerrorDialog WM_DELETE_WINDOW { } - if {($tcl_platform(platform) eq "macintosh") + if {$tcl_platform(platform) eq "windows"} { + wm attributes .bgerrorDialog -topmost 1 + } + if {($tcl_platform(platform) eq "macintosh") || ([tk windowingsystem] eq "aqua")} { ::tk::unsupported::MacWindowStyle style .bgerrorDialog dBoxProc } |