--- a/ModalBox.st Sun Jun 04 18:38:31 1995 +0200
+++ b/ModalBox.st Tue Jun 06 06:09:07 1995 +0200
@@ -21,7 +21,7 @@
COPYRIGHT (c) 1990 by Claus Gittinger
All Rights Reserved
-$Header: /cvs/stx/stx/libview/ModalBox.st,v 1.24 1995-05-16 17:13:24 claus Exp $
+$Header: /cvs/stx/stx/libview/ModalBox.st,v 1.25 1995-06-06 04:07:35 claus Exp $
'!
!ModalBox class methodsFor:'documentation'!
@@ -42,7 +42,7 @@
version
"
-$Header: /cvs/stx/stx/libview/ModalBox.st,v 1.24 1995-05-16 17:13:24 claus Exp $
+$Header: /cvs/stx/stx/libview/ModalBox.st,v 1.25 1995-06-06 04:07:35 claus Exp $
"
!
@@ -105,7 +105,6 @@
label := 'Popup'.
UseTransientViews ifFalse:[
-"/ (StyleSheet at:#popupShadow default:false) ifTrue:[
PopUpView shadows ifTrue:[
shadowView := (ShadowView onDevice:device) for:self
].
@@ -165,7 +164,10 @@
!
initStyle
+ |style|
+
super initStyle.
+ style := styleSheet name.
((style ~~ #normal) and:[style ~~ #mswindows]) ifTrue:[
borderWidth := 0.
UseTransientViews ifFalse:[
@@ -210,7 +212,7 @@
|newExtent|
- newExtent := self preferedExtent.
+ newExtent := self preferredExtent.
newExtent = self extent ifTrue:[^ self].
(shown and:[shadowView notNil]) ifTrue:[
@@ -225,7 +227,7 @@
!ModalBox methodsFor:'queries'!
-preferedExtent
+preferredExtent
"return the extent required to make all components
visible in myself. This should be redefined in
subclasses."
@@ -549,7 +551,7 @@
windowGroup notNil ifTrue:[windowGroup focusView:nil].
self leaveControl.
self unrealize.
- device synchronizeOutput.
+ device flush.
(windowGroup notNil and:[(p := windowGroup previousGroup) notNil]) ifTrue:[
"