[Cuis-dev] Mouse Focus

Juan Vuletich juan at jvuletich.org
Fri Oct 22 07:01:54 PDT 2021

On 10/19/2021 4:12 PM, Hilaire Fernandes via Cuis-dev wrote:
> Good idea to inspect the hand!
> 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.

I believe that's how mouse focus works. If you drag the mouse during 
that time, the events are sent to the mouse focus.

> 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.
> There is likely something I don't understand. Likely what I want to 
> use is the keyboard focus.

Most likely.

> Joined is the code.
> Thanks
> Hilaire
> Le 19/10/2021 à 15:46, Juan Vuletich via Cuis-dev a écrit :
>> Just tried. Opened a WidgetMorph, sent to it
>> self setProperty: #handlesMouseDown: toValue: true
>> Then I opened an inspector on the hand.
>> When I click on the widget, the inspector shows it at ivar 
>> 'mouseFocus' in the hand. So, it seems to work OK here.
>> Please give instructions in enough detail to reproduce what you are 
>> doing.
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu


Juan Vuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211022/cad35550/attachment-0001.htm>

More information about the Cuis-dev mailing list