[Cuis-dev] [IMPROV]#setBallonText: does not need to convert to string

Gerald Klix cuis.01 at klix.ch
Sat Dec 19 04:31:05 PST 2020


Hi all, Hi Juan, Hi Ken,

Is there any need to convert a ballonText to
string? Displaying text with attributes works
nicely. I added slightly simpler Morph>>#setBalloonText: and short demo 
script.


HTH and Best Regards,

Gerald
-------------- next part --------------
lm _ LabelMorph contents: 'Test'.
lm setBalloonText: 'Italic' italic, ': ', 'red' red.
lm openInWorld 
-------------- next part --------------
'From Cuis 5.0 [latest update: #4490] on 19 December 2020 at 1:28:00 pm'!

!Morph methodsFor: 'halos and balloon help' stamp: 'KLG 12/19/2020 13:17:06'!
setBalloonText: stringTextOrSymbol
	"Set receiver's balloon help text. Pass nil to remove the help."

	stringTextOrSymbol
		ifNil: [ self removeProperty: #balloonText ]
		ifNotNil: [
			self
				setProperty: #balloonText
				toValue: stringTextOrSymbol ].! !


More information about the Cuis-dev mailing list