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'
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
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'