changed: #openAt:withExtent:andType:
authorClaus Gittinger <cg@exept.de>
Thu, 03 Mar 2011 20:24:01 +0100
changeset 2896 96d5a0b6fc56
parent 2895 b7abc3d3321f
child 2897 ea76bd971a64
changed: #openAt:withExtent:andType:
WindowBuilder.st
--- a/WindowBuilder.st	Thu Mar 03 19:32:49 2011 +0100
+++ b/WindowBuilder.st	Thu Mar 03 20:24:01 2011 +0100
@@ -1457,7 +1457,7 @@
         ]
     ].
 
-    ((type == #dialog) or:[type == #toolDialog or:[ type == #popUp] ]) ifTrue:[
+    ((type == #dialog) or:[type == #toolDialog or:[ type == #popUp or:[type == #popUpWithFrame]] ]) ifTrue:[
         |newOrigin|
 
         ((origin isNil and:[window class forceModalBoxesToOpenAtCenter])
@@ -1488,12 +1488,17 @@
         ] ifFalse:[
             type == #popUp ifTrue:[
                 window bePopUpView.
-            ]
+            ] ifFalse:[
+                type == #popUpWithFrame ifTrue:[
+                    "/ window windowType:type.
+                    window beUndecorated.
+                ]
+            ].
         ].
         ^ window openModal.
     ].
 
-    (type == #normal or:[type = #slave or:[type = #partner or:[type = #popUpNotModal]]]) ifTrue:[
+    (type == #normal or:[type = #slave or:[type = #partner or:[type = #popUpNotModal or:[type = #undecorated]]]]) ifTrue:[
         window isNil ifTrue:[
             application notNil ifTrue:[
                 appWinClass := application applicationWindowClass
@@ -1555,6 +1560,10 @@
             ] ifFalse:[
                 type == #popUpNotModal ifTrue:[
                     window bePopUpView.
+                ] ifFalse:[
+                    type == #undecorated ifTrue:[
+                        window beUndecorated.
+                    ]
                 ]
             ].
         ].
@@ -1588,7 +1597,7 @@
     self shouldImplement
 
     "Created: / 14-02-1997 / 20:22:24 / cg"
-    "Modified: / 03-03-2011 / 19:04:05 / cg"
+    "Modified: / 03-03-2011 / 20:23:50 / cg"
 ! !
 
 !WindowBuilder methodsFor:'translating'!
@@ -1606,9 +1615,9 @@
 !WindowBuilder class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/WindowBuilder.st,v 1.146 2011-03-03 18:32:41 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/WindowBuilder.st,v 1.147 2011-03-03 19:24:01 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview2/WindowBuilder.st,v 1.146 2011-03-03 18:32:41 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/WindowBuilder.st,v 1.147 2011-03-03 19:24:01 cg Exp $'
 ! !