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
:message2
{message opt1 opt2
} {
29 global OK MSG_title WAIT TKW
32 if {[winfo exists .msg
]} {
33 wm deiconify .msg
; return
38 toplevel .msg
-class Toplevel
\
40 wm focusmodel .msg passive
41 wm maxsize .msg
1265 994
43 wm overrideredirect .msg
0
46 wm geometry .msg
+100+100
47 wm title .msg
$MSG_title
48 #wm iconbitmap .msg @$TKW/shared/images/setup2.xbm
49 #wm iconmask .msg @$TKW/shared/images/setupmask2.xbm
51 #creates the message widget:
52 message .msg.msg
-justify center
-text $message -background #dddddd -aspect 300
57 -font -Adobe-Helvetica
-Medium
-R
-Normal
-*-*-120-*-*-*-*-*-* -padx 9 \
58 -pady 3 -text $opt1 -width 8 \
59 -command {destroy .msg
; set WAIT opt1
; return}
62 -font -Adobe-Helvetica
-Medium
-R
-Normal
-*-*-120-*-*-*-*-*-* -padx 9 \
63 -pady 3 -text $opt2 -width 8\
64 -command {destroy .msg
; set WAIT opt2
; return}
69 pack .msg.msg
-padx 5 -pady 5
70 #-anchor nw -bordermode ignore
71 pack .msg.but1
-padx 5 -pady 5 -side left
72 pack .msg.but2
-padx 5 -pady 5 -fill x
73 #-x 110 -y $H2 -width 100 -height 28 -anchor nw -bordermode ignore