[Cuis-dev] Re : Re: Morph to just represents paragraphs of text

H. Fernandes hilaire at drgeo.eu
Mon Nov 1 01:55:37 PDT 2021

Hi Juan,

I think it is a useful addition to Cuis. In the mean time, I cooked a very simple Morph with only 3 methods (attached). But it is nice to have a more complete Morph where you can select and copy the text.

Dr. Geo -- http://drgeo.eu

> I just fixed the insertion mark when in #disableEditing. I also did a 
> few tweaks, to allow using an InnerTextMorph without a TextModelMorph. 
> But it still needs a TextModel, that is not really needed for a 
> non-editable text.
> So, I also added a new class: ReadOnlyTextMorph. It can be used by 
> itself or in a ScrollPane. #contents: is simply a Text. No editing 
> possible at all, but you can select and copy text from it. It is 
> essentially a trimmed copy of InnerTextMorph, but with a Text instead of 
> a TextModel. Added a couple of examples of use in the class comment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DrGParagraphMorph.st
Type: application/squeak-changeset
Size: 1497 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211101/73b2cd54/attachment.bin>

More information about the Cuis-dev mailing list