2 #############################################################################
3 # Visual Tcl v1.07 Project
5 # Copyright 1999 Jean-Louis Thirot
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #################################
26 #################################
28 proc TkW
:message {message} {
29 global OK MSG_title WAIT TKW
32 if {[winfo exists .msg
]} {
33 wm deiconify .msg
; return
38 toplevel .msg
-class Toplevel
\
41 wm focusmodel .msg passive
42 wm maxsize .msg
1265 994
44 wm overrideredirect .msg
0
47 wm geometry .msg
+100+100
48 wm title .msg
$MSG_title
49 #wm iconbitmap .msg @$TKW/shared/images/setup2.xbm
50 #wm iconmask .msg @$TKW/shared/images/setupmask2.xbm
52 #creates the message widget:
53 message .msg.msg
-justify center
-text $message -background #dddddd -aspect 300
58 -font -Adobe-Helvetica
-Medium
-R
-Normal
-*-*-120-*-*-*-*-*-* -padx 9 \
59 -pady 3 -text button -textvariable $OK -width 8\
68 pack .msg.msg
-padx 5 -pady 5
69 #-anchor nw -bordermode ignore
70 pack .msg.but18
-side bottom
-padx 5 -pady 5
71 #-x 110 -y $H2 -width 100 -height 28 -anchor nw -bordermode ignore
72 #pack .msg.lab19 -width 50 -height 30 -padx 10 -pady 10