<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 11/26/2021 7:32 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:002ed4e5-11ae-d53e-e6c3-92ea93009936@drgeo.eu"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p><font size="+1">Hi Juan, <br>
</font></p>
<p><font size="+1">Here is a small change set over your recent
TextParagraphMorph to add background and border by inheriting
from WidgetMorph.</font></p>
<p><font size="+1">I want to use this morph has a status bar
information widget in DrGeo window.<br>
</font></p>
<p><font size="+1">There is still an issue I can't fix: the text
is drawn over the border, not sure there is an elegant way to
solve it without redrawing the border, which ruin the
inheritance. It is a bit like
#textComposition:bounds:color:selectionColor: is not strickly
honoring the bounds argument.<br>
</font></p>
<p>I let check out. I have another change of the drawnOn: method
but you may have better idea<br>
</p>
<p>Hilaire<br>
</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>
Hi Hilaire.<br>
<br>
The way for text not to overwrite the border is to give the
TextComposition the appropriate extent. Just pushed to GitHub an
update that includes this together with your fix.<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>