[Pharo-dev] StringMorph removing Text styling
i.uhnak at gmail.com
Wed Oct 18 09:28:34 EDT 2017
There's a cursor issue though... when you have TextMorphs in e.g. list
(FastTable), then the cursor changes to text selection, that's why I wanted
to use StringMorph.
So maybe renaming (subclassing?) StringMorph to LabelMorph to make it more
On Wed, Oct 18, 2017 at 1:30 PM, Pavel Krivanek <pavel.krivanek at gmail.com>
> Personally I would expect that the second version should be fixed to
> discard formatting. We have the TextMorph for such cases.
> -- Pavel
> 2017-10-18 11:40 GMT+02:00 Peter Uhnák <i.uhnak at gmail.com>:
>> I am not sure if this is a bug or a feature, but converting Text to
>> StringMorph clears some of the formating.
>> text := 'hello' asText makeAllColor: Color red.
>> text asStringMorph openInWindow. "no color"
>> (StringMorph contents: text) openInWindow. "with color"
>> Bug? Feature?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-dev