set correct FG color after enabling
authortz
Wed, 11 Mar 1998 21:21:49 +0100
changeset 820 0f0b4a82bdc5
parent 819 8450cb2ba595
child 821 fb1c37408cd9
set correct FG color after enabling
CheckBox.st
--- a/CheckBox.st	Tue Mar 10 18:12:02 1998 +0100
+++ b/CheckBox.st	Wed Mar 11 21:21:49 1998 +0100
@@ -601,10 +601,12 @@
 
     |clr|
 
-    self enabled 
+    self enabled   
     ifTrue:
-    [  
-        labelView foregroundChannel: foregroundChannel.
+    [                 
+        (foregroundChannel notNil and: [foregroundChannel value notNil]) 
+            ifTrue:  [labelView foregroundChannel: foregroundChannel]
+            ifFalse: [labelView foregroundColor: labelForegroundColor ? Color black].
         labelForegroundColor := labelView foregroundColor
     ]
     ifFalse: 
@@ -795,5 +797,5 @@
 !CheckBox class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/CheckBox.st,v 1.51 1998-03-09 21:21:33 tz Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/CheckBox.st,v 1.52 1998-03-11 20:21:49 tz Exp $'
 ! !