Spec icon indicating copy to clipboard operation
Spec copied to clipboard

#help: aString is not dynamic with morphic background

Open Nyan11 opened this issue 1 year ago • 0 comments

Hello,

Description

I have a button. It can do 2 things, and i want to indicate that with the help (yellow tooltip on hover).

But if the button is already open (it already as an adaptater with an associated widget), it will not update the help value, the SpMorphicButtonAdapter does not update the value of the tooltip on the widget (SpPluggableButtonMorph >> #setBallonText:).

Example

button := SpButtonPresenter new label: 'action 1'; help: 'help 1'; yourself.
button open.

"We change the state of the application."
button label: 'action 2'.
button help: 'help 2'.

If you doit this script in a playground. The button will have a label = ation 2. and if you hover it, it will display 'help 1'

Nyan11 avatar Aug 31 '23 12:08 Nyan11