checkin from browser
authorClaus Gittinger <cg@exept.de>
Sat, 29 Mar 1997 16:27:58 +0100
changeset 336 5199e2058981
parent 335 6f007bdeae94
child 337 de0a0cb4275b
checkin from browser
ProgressIndicator.st
--- a/ProgressIndicator.st	Sat Mar 29 16:14:22 1997 +0100
+++ b/ProgressIndicator.st	Sat Mar 29 16:27:58 1997 +0100
@@ -482,8 +482,11 @@
     "set the percentage displays foreground color"
 
     fgColor := aColor
+    shown ifTrue:[
+        self invalidate
+    ].
 
-    "Modified: 29.3.1997 / 16:08:49 / cg"
+    "Modified: 29.3.1997 / 16:27:41 / cg"
 !
 
 showPercentage
@@ -497,9 +500,12 @@
 showPercentage:aBoolean
     "set/clear the flag controlling if the percentage is to be shown numerically"
 
-    showPercentage := aBoolean
+    showPercentage := aBoolean.
+    shown ifTrue:[
+        self invalidate
+    ].
 
-    "Modified: 29.3.1997 / 16:09:07 / cg"
+    "Modified: 29.3.1997 / 16:27:37 / cg"
 ! !
 
 !ProgressIndicator methodsFor:'change & update'!
@@ -672,5 +678,5 @@
 !ProgressIndicator class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.13 1997-03-29 15:14:22 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/ProgressIndicator.st,v 1.14 1997-03-29 15:27:58 cg Exp $'
 ! !