[Cuis-dev] Enable state for pluggable button

Gerald Klix cuis.01 at klix.ch
Fri Nov 19 12:53:21 PST 2021


On 11/19/21 4:14 PM, ken.dickey at whidbey.com wrote:
> Also note
> 
>    EnableDisableButton class
> 
> in 'Morphic-Games-Solitaire' package
> 
> which grays/darkens a button when disabled and answers 'false' to 
> #handlesMouseDown: in this case.
> 
> Would it be better to have a FancyPluggableButtonMorph subclass or 
> refactor the current PluggableButtonMorph ?
If we will (begin to) use this behavior in the standard browsers,
than it would make sense to add it to the image.
I in any case, for rather selfish reasons, I prefer a subclass.
A subclass makes it easier for packages/classes
that inherit from PluggableButtonMorph.


HTH,

Gerald



More information about the Cuis-dev mailing list