<!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">
Please, give me full context, so I can browse all the code and play
with examples. Impossible to be of help otherwise! I.e. in the base
image, no morph answers #containsPoint:...<br>
<br>
On 10/22/2021 6:03 PM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:749cb53a-7c13-a04f-3329-b32b9b15ae9a@drgeo.eu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font size="+1">Juan,<br>
</font></p>
<p><font size="+1">But for text like view in the model, I have
this method bellow that does not work anymore:<br>
</font></p>
<p><font size="+1"><font face="monospace">containsPoint:
globalPoint<br>
"We really want rectangle detection, more user friendly"<br>
^ self canBeDrawn <br>
and: [self displayBounds <br>
ifNil: [false] <br>
ifNotNil: [:d | d containsPoint: globalPoint ]]<br>
</font><br>
</font></p>
<p><font size="+1">It it render as (if it matter):</font></p>
<p><font size="+1" face="monospace">drawOn: aCanvas<br>
| r |<br>
self contents: mathItem text.<br>
r _ self labelPosition extent: extent.<br>
aCanvas<br>
textComposition: textComposition<br>
bounds: (r insetBy: 4)<br>
color: color<br>
selectionColor: `Color red`.</font></p>
<p><font size="+1">I can compute by hand the bounding box of the
morph, but not sure about what is happening here and I want to
mention it.<br>
</font></p>
<p><font size="+1">Hilaire<br>
</font></p>
<p><font size="+1">[1] it makes it easier for the user to select
textual object.</font><br>
</p>
<div class="moz-cite-prefix">Le 22/10/2021 à 15:59, Juan Vuletich
a écrit :<br>
</div>
<blockquote type="cite" cite="mid:6172C3A4.2000507@jvuletich.org"><br>
That variable is for internal use of the framework. Usually you
don't need to care about its value. Sometimes it will be nil.
Sometimes it will be a null rectangle (like in the example you
saw). Sometimes it will be a valid rectangle. Don't worry.<br>
</blockquote>
<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>
<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>