testMode enable/disable
authorClaus Gittinger <cg@exept.de>
Thu, 01 Apr 1999 15:30:20 +0200
changeset 1102 abcdd3d5a67b
parent 1101 328456f7c51b
child 1103 ecc91379704b
testMode enable/disable
UIObjectView.st
--- a/UIObjectView.st	Wed Mar 31 18:27:20 1999 +0200
+++ b/UIObjectView.st	Thu Apr 01 15:30:20 1999 +0200
@@ -389,17 +389,17 @@
 enableStateChanged
     "set the modification / test mode
     "
-    |aState|
-
-    (aState := enableChannel value) ifFalse:[
-        aState ifFalse:[
-            saveSelection := self selection.
-            self select:nil.
+    self shown ifTrue:[
+        enableChannel value ifFalse:[
+            saveSelection := selection.
+            self hideSelection.
+            selection := nil.
             inputView unmap.
         ] ifTrue:[
             inputView raise.
             inputView realize.
-            self select:saveSelection.
+            selection := saveSelection.
+            self showSelection
         ]
     ]
 
@@ -436,7 +436,7 @@
 testMode:aBoolean
     "change test mode
     "
-    self enabled:(aBoolean not)
+    enableChannel value:(aBoolean not)
 ! !
 
 !UIObjectView methodsFor:'blocked'!