pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
61 stars 63 forks source link

#help: aString is not dynamic with morphic background #1444

Open Nyan11 opened 1 year ago

Nyan11 commented 1 year ago

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'