'grep -q' is not portable -> don't use it.
[wine.git] / tools / wineconf.libs / message.tcl
blobcdd5bf798f87bf56554462fb313bf7bd089a4072
1 #!/usr/bin/wish
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 #################################
23 # GLOBAL VARIABLES
25 global widget;
26 #################################
28 proc TkW:message {message} {
29 global OK MSG_title WAIT TKW
31 set base .msg
32 if {[winfo exists .msg]} {
33 wm deiconify .msg; return
35 ###################
36 # CREATING WIDGETS
37 ###################
38 toplevel .msg -class Toplevel \
39 -background #ffffff
40 #-background #4c92fe
41 wm focusmodel .msg passive
42 wm maxsize .msg 1265 994
43 wm minsize .msg 200 1
44 wm overrideredirect .msg 0
45 wm resizable .msg 1 1
46 wm deiconify .msg
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
56 button .msg.but18 \
57 -background #dddddd \
58 -font -Adobe-Helvetica-Medium-R-Normal-*-*-120-*-*-*-*-*-* -padx 9 \
59 -pady 3 -text button -textvariable $OK -width 8\
60 -command {
61 destroy .msg
62 set WAIT done
64 ###################
65 # SETTING GEOMETRY
66 ###################
67 #set H2 [expr $H +10]
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
73 #pack .msg.but18