<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Hilaire,<br>
<br>
On 10/31/2021 8:44 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:1eb54851-596c-bd68-1bfc-f69b6b89d669@drgeo.eu"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p><font size="+1">Hi, <br>
</font></p>
<p><font size="+1">I need a morph to display paragraphs of text,
may be with some emphasis, but without any editing
capabilities.</font></p>
<p><font size="+1">LabelMorph only prints string in one line,
ignoring LF, etc. <br>
</font></p>
<p><font size="+1">TextModelMorph is overkill and it still
displays the insertion character when in read only mode, the
surrounding frame, etc.</font></p>
<p><font size="+1">Am I missing anything?</font></p>
<p><font size="+1">Thanks<br>
</font></p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</blockquote>
<br>
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.<br>
<br>
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.<br>
<br>
Thanks,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</body>
</html>