support for external topViews.
authorClaus Gittinger <cg@exept.de>
Sat, 23 Jan 1999 13:23:11 +0100
changeset 2429 c54c8e30fe13
parent 2428 191f961209f8
child 2430 fbce2378d686
support for external topViews.
WSensor.st
WindowSensor.st
--- a/WSensor.st	Fri Jan 22 18:47:03 1999 +0100
+++ b/WSensor.st	Sat Jan 23 13:23:11 1999 +0100
@@ -896,7 +896,14 @@
         "/ Without the return below, we need a flushConfigureEvents entry here,
         "/ to be invoked whenever a subview is resized / repositioned.
 
-        ^ self
+        "/ A kludge-workaround had to be added to children of
+        "/ external top views - since the external view does not get any
+        "/ events delivered, we must react upon changes of the
+        "/ child. (sigh).
+        aView superView isExternalTopView ifFalse:[
+"/            'ignored configure for: ' print. aView class printCR.
+            ^ self
+        ]
     ].
 
     "/
@@ -2657,6 +2664,6 @@
 !WindowSensor class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Attic/WSensor.st,v 1.136 1999-01-10 17:03:56 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Attic/WSensor.st,v 1.137 1999-01-23 12:23:11 cg Exp $'
 ! !
 WindowSensor initialize!
--- a/WindowSensor.st	Fri Jan 22 18:47:03 1999 +0100
+++ b/WindowSensor.st	Sat Jan 23 13:23:11 1999 +0100
@@ -896,7 +896,14 @@
         "/ Without the return below, we need a flushConfigureEvents entry here,
         "/ to be invoked whenever a subview is resized / repositioned.
 
-        ^ self
+        "/ A kludge-workaround had to be added to children of
+        "/ external top views - since the external view does not get any
+        "/ events delivered, we must react upon changes of the
+        "/ child. (sigh).
+        aView superView isExternalTopView ifFalse:[
+"/            'ignored configure for: ' print. aView class printCR.
+            ^ self
+        ]
     ].
 
     "/
@@ -2657,6 +2664,6 @@
 !WindowSensor class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/WindowSensor.st,v 1.136 1999-01-10 17:03:56 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/WindowSensor.st,v 1.137 1999-01-23 12:23:11 cg Exp $'
 ! !
 WindowSensor initialize!