author | Claus Gittinger <cg@exept.de> |
Fri, 15 Aug 1997 13:03:59 +0200 | |
changeset 1865 | 43c2eaba229d |
parent 1826 | eccabd80bbc0 |
child 1915 | f86162de1a2f |
permissions | -rw-r--r-- |
0 | 1 |
" |
6 | 2 |
COPYRIGHT (c) 1990 by Claus Gittinger |
72 | 3 |
All Rights Reserved |
0 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
StandardSystemView subclass:#ModalBox |
|
1221
7ae7d7a901de
added escapeIsCancel flag (ST-80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
14 |
instanceVariableNames:'shadowView exclusiveKeyboard escapeIsCancel' |
1865
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
15 |
classVariableNames:'UseTransientViews DefaultExtent' |
514 | 16 |
poolDictionaries:'' |
17 |
category:'Views-Basic' |
|
0 | 18 |
! |
19 |
||
1232 | 20 |
!ModalBox class methodsFor:'documentation'! |
2 | 21 |
|
46 | 22 |
copyright |
23 |
" |
|
24 |
COPYRIGHT (c) 1990 by Claus Gittinger |
|
72 | 25 |
All Rights Reserved |
46 | 26 |
|
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
2 | 36 |
documentation |
37 |
" |
|
46 | 38 |
this class implements modal boxes; ModalBoxes are different from |
81 | 39 |
others, in that they take control over the current topview, until |
40 |
all processing is done (i.e. the currently active topview and all of |
|
41 |
its subviews will not handle user events while the box is active). |
|
89 | 42 |
|
43 |
ModalBoxes are either implemented as transient windows |
|
44 |
(if UseTransientViews := true) or as override redirect views. |
|
45 |
Some window managers have problems with either; so you may want to |
|
46 |
change the default setting from your display.rc file. |
|
616 | 47 |
|
48 |
[see also:] |
|
49 |
StandardSystemView |
|
50 |
DialogBox |
|
51 |
( introduction to view programming :html: programming/viewintro.html ) |
|
52 |
||
53 |
[author:] |
|
54 |
Claus Gittinger |
|
2 | 55 |
" |
56 |
! ! |
|
57 |
||
1232 | 58 |
!ModalBox class methodsFor:'initialization'! |
0 | 59 |
|
2 | 60 |
initialize |
89 | 61 |
UseTransientViews := true. |
1825 | 62 |
|
63 |
" |
|
64 |
UseTransientViews := false |
|
65 |
" |
|
66 |
||
67 |
"Modified: 24.7.1997 / 15:18:59 / cg" |
|
89 | 68 |
! ! |
69 |
||
1232 | 70 |
!ModalBox class methodsFor:'defaults'! |
89 | 71 |
|
72 |
defaultExtent |
|
73 |
"this defines the defaultExtent for instances of me; |
|
74 |
the value returned here is usually not correct for concrete subclasses, |
|
587 | 75 |
so you better redefine this method. |
76 |
The value returned here is usually ignored, and |
|
77 |
the value from preferredExtent taken instead." |
|
78 |
||
1865
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
79 |
DefaultExtent notNil ifTrue:[ |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
80 |
^ DefaultExtent |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
81 |
]. |
922
52c1d0d22c0e
dont ask Display for defaultExtent - ask current screen
Claus Gittinger <cg@exept.de>
parents:
761
diff
changeset
|
82 |
^ (Screen current pixelPerMillimeter * (60 @ 30)) rounded |
587 | 83 |
|
1865
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
84 |
"Modified: 15.8.1997 / 01:45:52 / cg" |
89 | 85 |
! |
86 |
||
596 | 87 |
defaultLabel |
88 |
"return the boxes default window title." |
|
89 |
||
90 |
^ 'PopUp' |
|
91 |
||
92 |
"Created: 23.4.1996 / 17:14:21 / cg" |
|
93 |
! |
|
94 |
||
1865
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
95 |
updateStyleCache |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
96 |
"extract values from the styleSheet and cache them in class variables" |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
97 |
|
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
98 |
<resource: #style (#modalBoxDefaultExtent)> |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
99 |
|
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
100 |
DefaultExtent := StyleSheet at:'modalBoxDefaultExtent' default:nil. |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
101 |
|
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
102 |
" |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
103 |
self updateStyleCache |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
104 |
" |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
105 |
|
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
106 |
"Modified: 31.8.1995 / 03:01:14 / claus" |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
107 |
"Modified: 1.3.1996 / 13:45:57 / cg" |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
108 |
"Created: 15.8.1997 / 01:40:53 / cg" |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
109 |
! |
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
110 |
|
89 | 111 |
useTransientViews:aBoolean |
112 |
"change the way modalBoxes are created on the Display. |
|
1397
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
113 |
If the argument is true, transient views are used; |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
114 |
otherwise override redirect views are used. |
959
a47e44337899
modalBoxes from non-windowGroup processes (background process)
Claus Gittinger <cg@exept.de>
parents:
953
diff
changeset
|
115 |
Depending on your windowmanager, either one may have problems. |
a47e44337899
modalBoxes from non-windowGroup processes (background process)
Claus Gittinger <cg@exept.de>
parents:
953
diff
changeset
|
116 |
You may want to change the setting |
1397
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
117 |
from your display.rc or d_xxx.rc file. |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
118 |
This is now obsolete - transient views work and are always used." |
89 | 119 |
|
120 |
UseTransientViews := aBoolean. |
|
121 |
||
122 |
" |
|
144 | 123 |
ModalBox useTransientViews:false |
124 |
ModalBox useTransientViews:true |
|
89 | 125 |
" |
959
a47e44337899
modalBoxes from non-windowGroup processes (background process)
Claus Gittinger <cg@exept.de>
parents:
953
diff
changeset
|
126 |
|
1397
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
127 |
"Modified: 28.2.1997 / 22:27:46 / cg" |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
128 |
! |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
129 |
|
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
130 |
usingTransientViews |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
131 |
"return true, if transient views are used |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
132 |
for modalBoxes. This is somewhat oboslete." |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
133 |
|
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
134 |
^ UseTransientViews |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
135 |
|
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
136 |
" |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
137 |
ModalBox usingTransientViews |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
138 |
" |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
139 |
|
959
a47e44337899
modalBoxes from non-windowGroup processes (background process)
Claus Gittinger <cg@exept.de>
parents:
953
diff
changeset
|
140 |
"Modified: 18.7.1996 / 19:18:46 / cg" |
1397
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
141 |
"Created: 28.2.1997 / 22:27:12 / cg" |
2 | 142 |
! ! |
0 | 143 |
|
296 | 144 |
!ModalBox methodsFor:'accessing'! |
145 |
||
146 |
exclusiveKeyboard:aBoolean |
|
147 |
"set/clear exclusive locking of the keyboard; |
|
148 |
If set, the box will take total control over the |
|
149 |
keyboard, not allowing input to other views/boxes |
|
150 |
while active. |
|
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
151 |
DANGER: |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
152 |
only use this for very very urgent boxes, since |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
153 |
no interaction with ANY view on the screen is possible then." |
296 | 154 |
|
155 |
exclusiveKeyboard := aBoolean |
|
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
156 |
|
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
157 |
"Modified: 12.5.1996 / 21:55:09 / cg" |
296 | 158 |
! ! |
159 |
||
160 |
!ModalBox methodsFor:'event handling'! |
|
161 |
||
162 |
coveredBy:aView |
|
163 |
"the receiver has been covered by another view. |
|
164 |
If the other view is a non-modal one, raise" |
|
165 |
||
166 |
|mainGroup topViews| |
|
167 |
||
168 |
" |
|
169 |
if the other view is not a modal- (or shadow-, or popup-) -view, |
|
170 |
bring myself to the front again. |
|
171 |
" |
|
172 |
aView isPopUpView ifFalse:[ |
|
173 |
" |
|
174 |
if I have a mainGroup, |
|
175 |
only raise if its one of my maingroup-views |
|
176 |
" |
|
177 |
windowGroup notNil ifTrue:[ |
|
178 |
mainGroup := windowGroup mainGroup. |
|
179 |
mainGroup notNil ifTrue:[ |
|
180 |
topViews := mainGroup topViews. |
|
181 |
topViews notNil ifTrue:[ |
|
182 |
topViews do:[:aTopView | |
|
183 |
aView == aTopView ifTrue:[ |
|
184 |
self raise. |
|
185 |
^ self |
|
186 |
] |
|
187 |
] |
|
188 |
]. |
|
189 |
^ self |
|
190 |
] |
|
191 |
]. |
|
192 |
self raise |
|
193 |
] |
|
194 |
! |
|
195 |
||
196 |
pointerEnter:state x:x y:y |
|
197 |
"mhmh: this seems to be a special X kludge; |
|
198 |
without the following, we will not regain input focus after |
|
199 |
pointer is reentered." |
|
200 |
||
201 |
self getKeyboardFocus. |
|
202 |
super pointerEnter:state x:x y:y |
|
203 |
! |
|
204 |
||
205 |
terminate |
|
206 |
"this is the close from a windowmanager |
|
207 |
(only if UseTransientViews == true)" |
|
208 |
||
209 |
" |
|
210 |
if I am a dialog, make the receiver invisible and leave control. |
|
211 |
But, do not destroy the underlying view resources, to allow for |
|
212 |
another open/show to occur later. |
|
213 |
if I have been opened modeLess, perform the normal destroy operation. |
|
214 |
" |
|
215 |
(windowGroup isNil or:[windowGroup isModal]) ifTrue:[ |
|
216 |
self hide |
|
217 |
] ifFalse:[ |
|
218 |
super terminate |
|
219 |
] |
|
220 |
! |
|
221 |
||
222 |
visibilityChange:how |
|
223 |
"raise when covered - this should not be needed, since we |
|
224 |
have been created as override-redirect window (which should |
|
225 |
stay on top - but some window managers (fvwm) seem to ignore |
|
226 |
this ..." |
|
227 |
||
228 |
"the code below is not good, since it will lead to |
|
229 |
oscillating raises when two modalBoxes are going to cover |
|
230 |
each other - see coveredBy:-handling ..." |
|
231 |
||
232 |
"/ how ~~ #fullyVisible ifTrue:[ |
|
233 |
"/ self raise |
|
234 |
"/ ] |
|
235 |
! ! |
|
236 |
||
0 | 237 |
!ModalBox methodsFor:'initialize / release'! |
238 |
||
296 | 239 |
addToCurrentProject |
240 |
"ignored here" |
|
241 |
||
242 |
^ self |
|
243 |
! |
|
244 |
||
245 |
create |
|
246 |
super create. |
|
247 |
shadowView notNil ifTrue:[ |
|
248 |
self saveUnder:true |
|
249 |
] |
|
250 |
! |
|
251 |
||
252 |
destroy |
|
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
253 |
"destroy the view. |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
254 |
redefined to also destroy my shadow, if there is one, |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
255 |
and to release the global keyboard grab (if there is one)" |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
256 |
|
296 | 257 |
shadowView notNil ifTrue:[ |
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
258 |
shadowView destroy. |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
259 |
shadowView := nil |
296 | 260 |
]. |
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
261 |
exclusiveKeyboard ifTrue:[ |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
262 |
device ungrabKeyboard |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
263 |
]. |
296 | 264 |
super destroy. |
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
265 |
|
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
266 |
"Modified: 12.5.1996 / 21:56:10 / cg" |
296 | 267 |
! |
268 |
||
269 |
initEvents |
|
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
270 |
"initialize event handling; redefined to enable visibility changes" |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
271 |
|
296 | 272 |
super initEvents. |
1221
7ae7d7a901de
added escapeIsCancel flag (ST-80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
273 |
self enableEvent:#visibilityChange. |
7ae7d7a901de
added escapeIsCancel flag (ST-80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
274 |
escapeIsCancel := true. |
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
275 |
|
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
276 |
"Modified: 12.5.1996 / 21:56:31 / cg" |
296 | 277 |
! |
278 |
||
279 |
initStyle |
|
1263 | 280 |
"setup viewStyle specifics" |
281 |
||
296 | 282 |
|style| |
283 |
||
284 |
super initStyle. |
|
285 |
style := styleSheet name. |
|
286 |
((style ~~ #normal) and:[style ~~ #mswindows]) ifTrue:[ |
|
1263 | 287 |
borderWidth := 0. |
288 |
UseTransientViews ifFalse:[ |
|
289 |
self level:2 |
|
290 |
] |
|
296 | 291 |
] |
1263 | 292 |
|
293 |
"Modified: 22.1.1997 / 11:57:35 / cg" |
|
296 | 294 |
! |
295 |
||
0 | 296 |
initialize |
89 | 297 |
|form resizeButton moveButton| |
81 | 298 |
|
0 | 299 |
super initialize. |
300 |
||
141 | 301 |
type := #dialog. |
12 | 302 |
exclusiveKeyboard := false. |
596 | 303 |
"/ label := ' '. |
12 | 304 |
|
596 | 305 |
"/ label := 'Popup'. |
89 | 306 |
|
81 | 307 |
UseTransientViews ifFalse:[ |
596 | 308 |
PopUpView shadows ifTrue:[ |
309 |
shadowView := (ShadowView onDevice:device) for:self |
|
310 |
]. |
|
89 | 311 |
|
596 | 312 |
form := Form width:8 height:8 |
313 |
fromArray:#[2r00000000 |
|
314 |
2r00000000 |
|
315 |
2r00000000 |
|
316 |
2r00000001 |
|
317 |
2r00000011 |
|
318 |
2r00000111 |
|
319 |
2r00001111 |
|
320 |
2r00011111 |
|
321 |
] |
|
322 |
on:device. |
|
1826 | 323 |
resizeButton := Button label:form in:self. |
596 | 324 |
resizeButton origin:1.0 @ 1.0 corner:1.0@1.0. |
325 |
resizeButton activeForegroundColor:(resizeButton foregroundColor). |
|
326 |
resizeButton activeBackgroundColor:(resizeButton backgroundColor). |
|
327 |
resizeButton enteredBackgroundColor:(resizeButton backgroundColor). |
|
328 |
resizeButton leftInset:-8; topInset:-8. |
|
329 |
resizeButton releaseAction:[]. |
|
330 |
resizeButton pressAction:[resizeButton turnOff; redraw. self doResize]. |
|
331 |
resizeButton borderWidth:0. |
|
752 | 332 |
resizeButton activeLevel:0; passiveLevel:0. |
596 | 333 |
resizeButton cursor:(Cursor corner). |
89 | 334 |
|
596 | 335 |
form := Form width:8 height:8 |
336 |
fromArray:#[2r11111000 |
|
337 |
2r11110000 |
|
338 |
2r11100000 |
|
339 |
2r11000000 |
|
340 |
2r10000000 |
|
341 |
2r00000000 |
|
342 |
2r00000000 |
|
343 |
2r00000000 |
|
344 |
] |
|
345 |
on:device. |
|
1826 | 346 |
moveButton := Button label:form in:self. |
596 | 347 |
moveButton origin:0.0 @ 0.0 corner:0.0@0.0. |
348 |
moveButton activeForegroundColor:(moveButton foregroundColor). |
|
349 |
moveButton activeBackgroundColor:(moveButton backgroundColor). |
|
350 |
moveButton enteredBackgroundColor:(moveButton backgroundColor). |
|
351 |
moveButton rightInset:-8; bottomInset:-8. |
|
352 |
moveButton releaseAction:[]. |
|
353 |
moveButton pressAction:[moveButton turnOff; redraw. self doMove]. |
|
354 |
moveButton borderWidth:0. |
|
752 | 355 |
moveButton activeLevel:0; passiveLevel:0. |
596 | 356 |
moveButton cursor:(Cursor origin) |
81 | 357 |
]. |
358 |
||
1826 | 359 |
"Modified: 24.7.1997 / 16:08:11 / cg" |
12 | 360 |
! |
361 |
||
296 | 362 |
isPopUpView |
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
363 |
"return true, if I want to come up without decoration |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
364 |
and popUp to top immediately." |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
365 |
|
296 | 366 |
^ UseTransientViews not |
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
367 |
|
1825 | 368 |
"Modified: 24.7.1997 / 15:20:14 / cg" |
0 | 369 |
! |
370 |
||
72 | 371 |
reinitialize |
372 |
super reinitialize. |
|
644 | 373 |
self unmap. |
374 |
||
375 |
"Modified: 3.5.1996 / 23:48:04 / stefan" |
|
72 | 376 |
! |
377 |
||
81 | 378 |
resize |
379 |
"resize myself to make everything visible" |
|
380 |
||
381 |
|newExtent| |
|
382 |
||
151 | 383 |
newExtent := self preferredExtent. |
81 | 384 |
newExtent = self extent ifTrue:[^ self]. |
385 |
||
386 |
(shown and:[shadowView notNil]) ifTrue:[ |
|
644 | 387 |
shadowView unmap. |
388 |
self extent:newExtent. |
|
389 |
shadowView realize. |
|
390 |
self raise |
|
81 | 391 |
] ifFalse:[ |
644 | 392 |
self extent:newExtent. |
81 | 393 |
]. |
644 | 394 |
|
395 |
"Modified: 3.5.1996 / 23:48:12 / stefan" |
|
180 | 396 |
! |
397 |
||
398 |
resizeUnderPointer |
|
399 |
"resize myself to make everything visible, AND possibly change the origin |
|
400 |
to have the mouse pointer stay within my bounds. |
|
401 |
This is used for self-resizing enterBoxes, to avoid moving |
|
402 |
the box away from the cursor." |
|
403 |
||
404 |
|newExtent newLeft delta| |
|
405 |
||
406 |
newExtent := self preferredExtent. |
|
407 |
newExtent = self extent ifTrue:[^ self]. |
|
408 |
||
409 |
shown ifTrue:[ |
|
644 | 410 |
delta := width - newExtent x. |
411 |
newLeft := left + delta. |
|
412 |
(((newLeft @ top) extent:newExtent) |
|
413 |
containsPoint:device pointerPosition) |
|
414 |
ifFalse:[newLeft := left]. |
|
415 |
newLeft < 0 ifTrue:[newLeft := 0]. |
|
416 |
newLeft + newExtent x > device width ifTrue:[ |
|
417 |
newLeft := device width - newExtent x |
|
418 |
]. |
|
419 |
shadowView notNil ifTrue:[ |
|
420 |
shadowView unmap. |
|
421 |
]. |
|
422 |
self origin:(newLeft @ top) extent:newExtent. |
|
423 |
shadowView notNil ifTrue:[ |
|
424 |
shadowView realize. |
|
425 |
self raise. |
|
426 |
]. |
|
180 | 427 |
] ifFalse:[ |
644 | 428 |
self extent:newExtent. |
180 | 429 |
]. |
430 |
||
431 |
"Modified: 6.9.1995 / 15:31:21 / claus" |
|
644 | 432 |
"Modified: 3.5.1996 / 23:48:17 / stefan" |
81 | 433 |
! ! |
434 |
||
296 | 435 |
!ModalBox methodsFor:'move & resize'! |
436 |
||
437 |
doMove |
|
1825 | 438 |
"the move button was pressed. |
439 |
This method is only used with non-transient views |
|
440 |
(UseTransientViews == false)." |
|
296 | 441 |
|
442 |
|r| |
|
443 |
||
1825 | 444 |
r := device rectangleFromUser:(self origin corner:self corner) keepExtent:true. |
296 | 445 |
shadowView notNil ifTrue:[ |
644 | 446 |
shadowView unmap |
296 | 447 |
]. |
1825 | 448 |
self origin:r origin extent:(self extent). |
296 | 449 |
shadowView notNil ifTrue:[ |
644 | 450 |
shadowView realize. |
1825 | 451 |
self raise. |
296 | 452 |
]. |
644 | 453 |
|
454 |
"Modified: 3.5.1996 / 23:47:38 / stefan" |
|
1825 | 455 |
"Modified: 24.7.1997 / 16:07:18 / cg" |
296 | 456 |
! |
457 |
||
458 |
doResize |
|
1825 | 459 |
"the resize button was pressed. |
460 |
This method is only used with non-transient views |
|
461 |
(UseTransientViews == false)." |
|
296 | 462 |
|
463 |
|r| |
|
464 |
||
465 |
r := device rectangleFromUser:(self origin corner:self corner). |
|
466 |
shadowView notNil ifTrue:[ |
|
644 | 467 |
shadowView unmap |
296 | 468 |
]. |
469 |
self origin:r origin extent:(r extent max:(100@100)). |
|
470 |
shadowView notNil ifTrue:[ |
|
644 | 471 |
shadowView realize. |
472 |
self raise |
|
296 | 473 |
]. |
644 | 474 |
|
475 |
"Modified: 3.5.1996 / 23:47:47 / stefan" |
|
1825 | 476 |
"Modified: 24.7.1997 / 15:18:46 / cg" |
296 | 477 |
! ! |
478 |
||
81 | 479 |
!ModalBox methodsFor:'queries'! |
480 |
||
151 | 481 |
preferredExtent |
81 | 482 |
"return the extent required to make all components |
483 |
visible in myself. This should be redefined in |
|
484 |
subclasses." |
|
485 |
||
965 | 486 |
"/ If I have an explicit preferredExtent .. |
487 |
||
761
34d17118452a
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
752
diff
changeset
|
488 |
preferredExtent notNil ifTrue:[ |
34d17118452a
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
752
diff
changeset
|
489 |
^ preferredExtent |
34d17118452a
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
752
diff
changeset
|
490 |
]. |
34d17118452a
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
752
diff
changeset
|
491 |
|
81 | 492 |
^ self class defaultExtent |
761
34d17118452a
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
752
diff
changeset
|
493 |
|
965 | 494 |
"Modified: 19.7.1996 / 20:45:07 / cg" |
0 | 495 |
! ! |
496 |
||
1700
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
497 |
!ModalBox methodsFor:'queries - internal'! |
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
498 |
|
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
499 |
windowStyle |
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
500 |
"return a symbol describing my style |
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
501 |
(may be used internally by the device as a decoration hint)" |
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
502 |
|
1825 | 503 |
UseTransientViews ifTrue:[ |
504 |
^ #dialog |
|
505 |
]. |
|
506 |
^ #popUp |
|
1700
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
507 |
|
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
508 |
"Created: 2.5.1997 / 14:34:17 / cg" |
1825 | 509 |
"Modified: 24.7.1997 / 15:22:39 / cg" |
1700
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
510 |
! ! |
ea1abaa7901d
preps for native window support
Claus Gittinger <cg@exept.de>
parents:
1400
diff
changeset
|
511 |
|
296 | 512 |
!ModalBox methodsFor:'show / hide'! |
513 |
||
514 |
autoHideAfter:seconds with:anAction |
|
515 |
"install a background process, which hides the box |
|
516 |
after some time. Also, if non-nil, anAction will be |
|
517 |
evaluated then. The action will not be evaluated if |
|
518 |
the box is closed by the user pressing a button." |
|
519 |
||
520 |
"the implementation is simple: just fork of a process |
|
521 |
to hide me." |
|
522 |
[ |
|
371 | 523 |
Delay waitForSeconds:seconds. |
296 | 524 |
self shown ifTrue:[ |
525 |
self hide. |
|
526 |
anAction notNil ifTrue:[anAction value] |
|
527 |
] |
|
528 |
] forkAt:4. |
|
529 |
||
530 |
" |
|
531 |
|b| |
|
532 |
||
533 |
b := InfoBox title:'hello there'. |
|
534 |
b autoHideAfter:5 with:[]. |
|
535 |
b showAtCenter. |
|
536 |
" |
|
537 |
! |
|
538 |
||
539 |
fixSize |
|
540 |
"this is sent right before the modalBox is made visible; |
|
541 |
If the size is not fixed, adjust my size." |
|
542 |
||
543 |
sizeFixed == true ifFalse:[ |
|
544 |
self resize. |
|
545 |
]. |
|
546 |
super fixSize. |
|
547 |
! |
|
548 |
||
549 |
hide |
|
550 |
"make the receiver invisible and leave control" |
|
551 |
||
552 |
|p| |
|
54 | 553 |
|
1314 | 554 |
realized ifFalse:[^ self]. |
555 |
||
644 | 556 |
shadowView notNil ifTrue:[shadowView unmap]. |
296 | 557 |
windowGroup notNil ifTrue:[windowGroup focusView:nil]. |
675
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
558 |
exclusiveKeyboard ifTrue:[ |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
559 |
device ungrabKeyboard |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
560 |
]. |
fc15e8886089
removed leaveCOntrol (not used); added comments
Claus Gittinger <cg@exept.de>
parents:
644
diff
changeset
|
561 |
|
644 | 562 |
self unmap. |
296 | 563 |
device flush. |
54 | 564 |
|
296 | 565 |
(windowGroup notNil and:[(p := windowGroup previousGroup) notNil]) ifTrue:[ |
644 | 566 |
" |
567 |
this is a kludge for IRIS which does not provide backingstore: |
|
568 |
when we hide a modalbox (such as a searchbox) which covered |
|
569 |
a scrollbar, the scrollbars bitblt-method will copy from the |
|
570 |
not-yet redrawn area - effectively clearing the scroller. |
|
571 |
We need a short delay here, since at this time, the expose event has |
|
572 |
not yet arrived. |
|
573 |
" |
|
574 |
Delay waitForSeconds:0.1. |
|
575 |
p processExposeEvents |
|
296 | 576 |
]. |
644 | 577 |
|
578 |
"Modified: 3.5.1996 / 23:47:57 / stefan" |
|
1314 | 579 |
"Modified: 8.2.1997 / 17:41:16 / cg" |
296 | 580 |
! |
0 | 581 |
|
393
3504a0adbb2d
use hideRequest to close via Escape key (allows redefinition);
Claus Gittinger <cg@exept.de>
parents:
371
diff
changeset
|
582 |
hideRequest |
3504a0adbb2d
use hideRequest to close via Escape key (allows redefinition);
Claus Gittinger <cg@exept.de>
parents:
371
diff
changeset
|
583 |
"hide request from windowGroup (i.e. via Escape key). |
3504a0adbb2d
use hideRequest to close via Escape key (allows redefinition);
Claus Gittinger <cg@exept.de>
parents:
371
diff
changeset
|
584 |
Can be redefined in subclasses which dont like this" |
3504a0adbb2d
use hideRequest to close via Escape key (allows redefinition);
Claus Gittinger <cg@exept.de>
parents:
371
diff
changeset
|
585 |
|
1221
7ae7d7a901de
added escapeIsCancel flag (ST-80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
586 |
escapeIsCancel ifTrue:[ |
7ae7d7a901de
added escapeIsCancel flag (ST-80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
587 |
self hide |
7ae7d7a901de
added escapeIsCancel flag (ST-80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
965
diff
changeset
|
588 |
] |
393
3504a0adbb2d
use hideRequest to close via Escape key (allows redefinition);
Claus Gittinger <cg@exept.de>
parents:
371
diff
changeset
|
589 |
! |
3504a0adbb2d
use hideRequest to close via Escape key (allows redefinition);
Claus Gittinger <cg@exept.de>
parents:
371
diff
changeset
|
590 |
|
0 | 591 |
mapped |
592 |
"wait till visible for grabbing" |
|
593 |
||
594 |
super mapped. |
|
12 | 595 |
|
596 |
"take it away from any popup menu possibly still active" |
|
597 |
||
81 | 598 |
device ungrabKeyboard. |
599 |
device ungrabPointer. |
|
12 | 600 |
|
54 | 601 |
" |
602 |
if I am a super-modal box, take the keyboard |
|
603 |
" |
|
12 | 604 |
exclusiveKeyboard ifTrue:[ |
81 | 605 |
device grabKeyboardInView:self. |
12 | 606 |
]. |
607 |
||
89 | 608 |
"/ UseTransientViews ifFalse:[ |
609 |
" |
|
610 |
get the focus |
|
611 |
" |
|
612 |
self getKeyboardFocus. |
|
613 |
self enableEnterLeaveEvents |
|
614 |
"/ ] |
|
0 | 615 |
! |
616 |
||
46 | 617 |
open |
72 | 618 |
"default for modalboxes is to come up modal at the pointer position" |
46 | 619 |
|
72 | 620 |
^ self showAtPointer |
46 | 621 |
! |
622 |
||
953 | 623 |
openAt:aPoint |
624 |
"default for modalboxes is to come up modal at the pointer position" |
|
625 |
||
626 |
^ self openModalAt:aPoint |
|
627 |
||
628 |
"Created: 17.7.1996 / 14:50:44 / cg" |
|
629 |
! |
|
630 |
||
631 |
openAtCenter |
|
632 |
"default for modalboxes is to come up modal at the pointer position" |
|
633 |
||
634 |
^ self openModalAtCenter |
|
635 |
||
636 |
"Created: 17.7.1996 / 14:50:35 / cg" |
|
637 |
! |
|
638 |
||
72 | 639 |
openModal:aBlock |
54 | 640 |
"open the box modal; |
641 |
In addition to the basic (inherited) modalloop, change |
|
72 | 642 |
the current active windowgroups cursors to the busy-stop cursor, show |
54 | 643 |
a shadow, and raise the box." |
644 |
||
1397
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
645 |
shadowView notNil ifTrue:[shadowView realize]. |
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
646 |
super openModal:aBlock. |
300
6a63af1fec3e
passing group to avoid multiple activeGroup searches
Claus Gittinger <cg@exept.de>
parents:
296
diff
changeset
|
647 |
|
6a63af1fec3e
passing group to avoid multiple activeGroup searches
Claus Gittinger <cg@exept.de>
parents:
296
diff
changeset
|
648 |
"Created: 10.12.1995 / 14:07:01 / cg" |
1397
932c517ad29c
moved tranientView setup up in the hierarchy
Claus Gittinger <cg@exept.de>
parents:
1314
diff
changeset
|
649 |
"Modified: 28.2.1997 / 22:32:49 / cg" |
54 | 650 |
! |
651 |
||
296 | 652 |
positionOffset |
653 |
"return the delta, by which the box should be |
|
1232 | 654 |
displaced from the mouse pointer. |
655 |
Here, the boxes center is returned as a default. |
|
296 | 656 |
Usually redefined in subclasses to have the most convenient |
657 |
ok-button appear under the pointer." |
|
658 |
||
1232 | 659 |
^ self extent // 2 |
660 |
||
661 |
"Modified: 16.1.1997 / 20:42:07 / cg" |
|
296 | 662 |
! |
663 |
||
12 | 664 |
show |
514 | 665 |
"make myself visible (at the last or default position) and take control. |
666 |
If that position is out of the screen area, moves the receiver to make |
|
667 |
it fully visible." |
|
12 | 668 |
|
669 |
self fixSize. |
|
72 | 670 |
self makeFullyVisible. |
54 | 671 |
self openModal |
72 | 672 |
|
673 |
" |
|
674 |
|b| |
|
675 |
||
676 |
b := InfoBox title:'hello'. |
|
677 |
b show. |
|
678 |
" |
|
514 | 679 |
|
680 |
"Modified: 7.3.1996 / 17:57:49 / cg" |
|
12 | 681 |
! |
682 |
||
683 |
showAt:aPoint |
|
684 |
"make myself visible at aPoint. |
|
685 |
Fix position to make box fully visible" |
|
686 |
||
687 |
self fixSize. |
|
688 |
self fixPosition:aPoint. |
|
54 | 689 |
self openModal |
72 | 690 |
|
691 |
" |
|
692 |
|b| |
|
693 |
||
694 |
b := InfoBox title:'hello'. |
|
695 |
b showAt:(0 @ 0). |
|
696 |
b showAt:(400 @ 400). |
|
697 |
" |
|
698 |
! |
|
699 |
||
700 |
showAt:aPoint center:center |
|
701 |
"make myself visible at aPoint. center specifies |
|
702 |
if the view should show up centered around aPoint." |
|
703 |
||
704 |
self showAt:aPoint centerX:center centerY:center |
|
705 |
||
706 |
" |
|
707 |
|b| |
|
708 |
||
709 |
b := InfoBox title:'hello'. |
|
710 |
b showAt:(100 @ 100) center:true. |
|
711 |
b showAt:(100 @ 100) center:false. |
|
712 |
" |
|
713 |
! |
|
714 |
||
715 |
showAt:aPoint centerX:centerX centerY:centerY |
|
716 |
"make myself visible at aPoint. centerX/centerY specify |
|
717 |
if the view should show up centered around aPoint. |
|
718 |
Fix position to make box fully visible" |
|
719 |
||
720 |
|dx dy| |
|
721 |
||
722 |
self fixSize. |
|
723 |
centerX ifTrue:[ |
|
724 |
dx := self width // 2. |
|
725 |
] ifFalse:[ |
|
726 |
dx := 0 |
|
727 |
]. |
|
728 |
centerY ifTrue:[ |
|
729 |
dy := self height // 2. |
|
730 |
] ifFalse:[ |
|
731 |
dy := 0 |
|
732 |
]. |
|
733 |
self origin:(aPoint - (dx @ dy)). |
|
734 |
self makeFullyVisible. |
|
735 |
self openModal |
|
736 |
||
737 |
" |
|
738 |
|b| |
|
739 |
||
740 |
b := InfoBox title:'hello'. |
|
741 |
b showAt:(100 @ 100). |
|
742 |
b showAt:(100 @ 100) centerX:true centerY:false. |
|
743 |
" |
|
54 | 744 |
! |
745 |
||
746 |
showAtCenter |
|
747 |
"make myself visible at the screen center." |
|
748 |
||
72 | 749 |
self showAt:(device center) center:true |
750 |
||
751 |
" |
|
752 |
|b| |
|
753 |
||
754 |
b := InfoBox title:'hello'. |
|
755 |
b showAtCenter. |
|
756 |
" |
|
757 |
! |
|
758 |
||
0 | 759 |
showAtPointer |
12 | 760 |
"make myself visible at mouse pointer shifted to have |
66 | 761 |
convenient button under cursor. self positionOffset should |
762 |
return that offset (usually redefined, since we dont know here, |
|
763 |
which button should be under cursor)." |
|
12 | 764 |
|
765 |
self fixSize. |
|
66 | 766 |
self fixPosition:(device pointerPosition - self positionOffset). |
767 |
self openModal |
|
72 | 768 |
|
514 | 769 |
"/ cannot use: |
770 |
"/ self showAt:(device pointerPosition - self positionOffset). |
|
771 |
"/ because the resizing must be done before the |
|
772 |
"/ positionOffset is grabbed (it may change due to the resize) |
|
773 |
||
72 | 774 |
" |
775 |
|b| |
|
776 |
||
777 |
b := InfoBox title:'hello'. |
|
778 |
b showAtPointer. |
|
779 |
" |
|
514 | 780 |
|
781 |
"Modified: 7.3.1996 / 17:56:53 / cg" |
|
0 | 782 |
! |
783 |
||
784 |
showAtPointerNotCovering:aView |
|
12 | 785 |
"make myself visible at mouse pointer shifted to have |
786 |
convenient button under cursor. |
|
514 | 787 |
Fix position to make the box fully visible AND to make sure that |
12 | 788 |
aView is not covered." |
789 |
||
54 | 790 |
|pos newX| |
0 | 791 |
|
12 | 792 |
pos := device pointerPosition - self positionOffset. |
54 | 793 |
|
794 |
((Rectangle origin:pos extent:self extent) |
|
514 | 795 |
intersects: (aView origin corner: aView corner)) |
54 | 796 |
ifTrue:[ |
514 | 797 |
" |
798 |
try to the right of the untouchable view |
|
799 |
" |
|
800 |
newX := (aView origin x + aView width). |
|
801 |
newX + width > device width ifTrue:[ |
|
802 |
newX := device width - width |
|
803 |
]. |
|
804 |
pos x:newX. |
|
54 | 805 |
|
806 |
||
514 | 807 |
((Rectangle origin:pos extent:self extent) |
808 |
intersects: (aView origin corner: aView corner)) |
|
809 |
ifTrue:[ |
|
810 |
" |
|
811 |
try to the left of the untouchable view |
|
812 |
" |
|
813 |
newX := aView origin x - width. |
|
814 |
" |
|
815 |
should look for vertical possibilities too ... |
|
816 |
" |
|
817 |
pos x:newX. |
|
818 |
] |
|
270 | 819 |
|
820 |
]. |
|
821 |
self showAt:pos |
|
514 | 822 |
|
823 |
"Modified: 7.3.1996 / 17:58:10 / cg" |
|
270 | 824 |
! |
825 |
||
296 | 826 |
showCenteredIn:aView |
514 | 827 |
"make myself visible at the center if aView." |
270 | 828 |
|
296 | 829 |
|top| |
270 | 830 |
|
296 | 831 |
top := aView topView. |
832 |
top raise. |
|
833 |
self showAt:(top center + (aView originRelativeTo:top)) center:true |
|
270 | 834 |
|
835 |
" |
|
836 |
|b| |
|
837 |
||
296 | 838 |
b := InfoBox title:'hello'. |
839 |
b showCenteredIn:Transcript. |
|
270 | 840 |
" |
514 | 841 |
|
842 |
"Modified: 7.3.1996 / 17:58:53 / cg" |
|
270 | 843 |
! ! |
844 |
||
1232 | 845 |
!ModalBox class methodsFor:'documentation'! |
270 | 846 |
|
296 | 847 |
version |
1865
43c2eaba229d
allow default topViews extends to be overwritten by styleSheet
Claus Gittinger <cg@exept.de>
parents:
1826
diff
changeset
|
848 |
^ '$Header: /cvs/stx/stx/libview/ModalBox.st,v 1.58 1997-08-15 11:03:59 cg Exp $' |
270 | 849 |
! ! |
296 | 850 |
ModalBox initialize! |