[Cuis-dev] sticky SystemWindow
Juan Vuletich
juan at cuis.st
Mon Mar 31 12:27:12 PDT 2025
On 3/31/2025 11:19 AM, Mark Volkmann via Cuis-dev wrote:
> When I create a subclass of SystemWindow that handles mouse events, I
> lose the ability to drag the window. It becomes sticky. I want to
> listen for right-click events. How can I retain the ability to drag
> the window? Here's simple code that demonstrates the issue:
>
> SystemWindow subclass: #MyWindow
> instanceVariableNames: ''
> classVariableNames: ''
> poolDictionaries: ''
> category: 'Demo'
>
> handlesMouseDown: aMouseEvent
> ^ true
>
> MyWindow new openInWorld
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
Hi Mark,
This will work:
handlesMouseDown: aMouseEvent
^(self internalizeFromWorld: aMouseEvent eventPosition) y > self
labelHeight
Cheers,
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250331/f52d0349/attachment-0001.htm>
More information about the Cuis-dev
mailing list