fixed round shaped transparent views (Region)
authorClaus Gittinger <cg@exept.de>
Tue, 08 Feb 2000 16:32:57 +0100
changeset 1342 acb9e9fe0cb1
parent 1341 055d1296cc20
child 1343 3ee2bcb3527d
fixed round shaped transparent views (Region)
VisualRegion.st
--- a/VisualRegion.st	Tue Feb 08 11:51:20 2000 +0100
+++ b/VisualRegion.st	Tue Feb 08 16:32:57 2000 +0100
@@ -182,11 +182,15 @@
      1-pixels, to define the shapes (take a look at the XShape spec, for more info)
     "
     isElliptical ifTrue:[
-        self makeRoundViewShapeWithBorder:lineWidth.
+        self makeRoundViewShapeWithBorder:lineWidth opaque:isOpaque.
     ] ifFalse:[
-        self borderShape:nil.
-        self viewShape:nil.
-        self borderWidth:lineWidth.
+        isOpaque ifFalse:[
+            self makeTransparentRectangularViewShapeWithBorder:lineWidth
+        ] ifTrue:[
+            self borderShape:nil.
+            self viewShape:nil.
+            self borderWidth:lineWidth.
+        ]
     ].
     ^ self.
 
@@ -236,5 +240,5 @@
 !VisualRegion class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/VisualRegion.st,v 1.6 1999-09-20 06:58:33 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/VisualRegion.st,v 1.7 2000-02-08 15:32:57 cg Exp $'
 ! !