#updateBackground bug fixed
bug:
sth is disabled and readonly.
foregroundColor has not been restored when sth was set to enable
--- a/EditField.st Thu Oct 12 16:30:45 2006 +0200
+++ b/EditField.st Thu Oct 12 17:21:54 2006 +0200
@@ -9,7 +9,6 @@
other person. No title to or ownership of the software is
hereby transferred.
"
-
"{ Package: 'stx:libwidg' }"
EditTextView subclass:#EditField
@@ -1988,7 +1987,9 @@
fg := StyleSheet colorAt:'button.disabledForegroundColor' default:Color gray.
].
self foregroundColor:fg.
- ]
+ ] ifTrue:[
+ self foregroundColor:DefaultForegroundColor.
+ ].
] ifFalse:[
self backgroundColor:DefaultBackgroundColor.
self foregroundColor:DefaultForegroundColor.
@@ -2177,5 +2178,5 @@
!EditField class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.183 2006-08-25 13:43:24 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.184 2006-10-12 15:21:54 sr Exp $'
! !