summaryrefslogtreecommitdiffstats
path: root/library/bgerror.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-04-25 20:02:43 (GMT)
committerhobbs <hobbs>2003-04-25 20:02:43 (GMT)
commitbca472e242ae09a0f2a664ac50eb73f7afe02da8 (patch)
tree81941ec9a8e6e6d905ca00fee1b08991fd49d834 /library/bgerror.tcl
parent0290185e47f8072183a6c06a771367fc4441a517 (diff)
downloadtk-bca472e242ae09a0f2a664ac50eb73f7afe02da8.zip
tk-bca472e242ae09a0f2a664ac50eb73f7afe02da8.tar.gz
tk-bca472e242ae09a0f2a664ac50eb73f7afe02da8.tar.bz2
* library/bgerror.tcl: make bgerror dialog topmost on Windows to
prevent it being covered by other windows.
Diffstat (limited to 'library/bgerror.tcl')
-rw-r--r--library/bgerror.tcl9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/bgerror.tcl b/library/bgerror.tcl
index 0c423df..7884180 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.24 2003/04/25 20:02:43 hobbs Exp $
+# $Id: bgerror.tcl,v 1.24 2003/04/25 20:02:43 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
}