<!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 10/19/2021 4:12 PM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:5e712c10-efad-59d3-0e53-11bf52ca7d95@drgeo.eu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font size="+1">Good idea to inspect the hand!</font></p>
<p><font size="+1">What I am observing is that, when I press my
morph, the inspector shows it gets the focus. Once I release
the button, the focus is lost.</font></p>
</blockquote>
<br>
I believe that's how mouse focus works. If you drag the mouse during
that time, the events are sent to the mouse focus.<br>
<br>
<blockquote cite="mid:5e712c10-efad-59d3-0e53-11bf52ca7d95@drgeo.eu"
type="cite">
<p><font size="+1">So I try with button1up event. This time the
focus sticks to my morph, but then with the mouse I can't
select any other morph. I need to show the halo of any morph,
so my morph looses the focus, then I can select any morph
then.</font></p>
<p><font size="+1">There is likely something I don't understand.
Likely what I want to use is the keyboard focus.<br>
</font></p>
</blockquote>
<br>
Most likely.<br>
<br>
<blockquote cite="mid:5e712c10-efad-59d3-0e53-11bf52ca7d95@drgeo.eu"
type="cite">
<p><font size="+1"> </font></p>
<p><font size="+1">Joined is the code.<br>
</font></p>
<p>Thanks</p>
<p>Hilaire<br>
</p>
<div class="moz-cite-prefix">Le 19/10/2021 à 15:46, Juan Vuletich
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite" cite="mid:616ECC31.2070602@jvuletich.org">Just
tried. Opened a WidgetMorph, sent to it<br>
self setProperty: #handlesMouseDown: toValue: true<br>
<br>
Then I opened an inspector on the hand.<br>
When I click on the widget, the inspector shows it at ivar
'mouseFocus' in the hand. So, it seems to work OK here.<br>
<br>
Please give instructions in enough detail to reproduce what you
are doing.<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>
Cheers,<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>