--- a/ComboListV.st Mon Mar 29 17:18:19 1999 +0200
+++ b/ComboListV.st Tue Mar 30 11:55:09 1999 +0200
@@ -567,13 +567,14 @@
"the enable state has changed - pass this to my pullDownButton
and change the fg-color of the label to some grey color"
- |clr|
+ |clr key|
- enableChannel value ifTrue:[
- clr := Button styleSheet at:'button.foregroundColor' default:Color black.
+ enableChannel value == false ifTrue:[
+ key := 'button.disabledForegroundColor'.
] ifFalse:[
- clr := Button styleSheet at:'button.disabledForegroundColor' default:Color black.
+ key := 'button.foregroundColor'.
].
+ clr := Button styleSheet at:key default:Color black.
field foregroundColor:clr.
super updateEnableState.
! !
@@ -646,5 +647,5 @@
!ComboListView class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libwidg2/Attic/ComboListV.st,v 1.31 1999-03-29 15:17:30 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg2/Attic/ComboListV.st,v 1.32 1999-03-30 09:55:09 cg Exp $'
! !
--- a/ComboListView.st Mon Mar 29 17:18:19 1999 +0200
+++ b/ComboListView.st Tue Mar 30 11:55:09 1999 +0200
@@ -567,13 +567,14 @@
"the enable state has changed - pass this to my pullDownButton
and change the fg-color of the label to some grey color"
- |clr|
+ |clr key|
- enableChannel value ifTrue:[
- clr := Button styleSheet at:'button.foregroundColor' default:Color black.
+ enableChannel value == false ifTrue:[
+ key := 'button.disabledForegroundColor'.
] ifFalse:[
- clr := Button styleSheet at:'button.disabledForegroundColor' default:Color black.
+ key := 'button.foregroundColor'.
].
+ clr := Button styleSheet at:key default:Color black.
field foregroundColor:clr.
super updateEnableState.
! !
@@ -646,5 +647,5 @@
!ComboListView class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libwidg2/ComboListView.st,v 1.31 1999-03-29 15:17:30 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg2/ComboListView.st,v 1.32 1999-03-30 09:55:09 cg Exp $'
! !