[Cuis-dev] Geodreieck!

Hilaire Fernandes hfern at free.fr
Sun Jul 5 05:58:05 PDT 2026


Depending on the complexity of the interaction in your application, I 
would suggest implementing the design pattern State[1]. It will scale 
well when the complexity of your application grows. It serves me well in 
DrGeo and DyboApp.

[1] https://drcuis.github.io/DesignGUI/State.html

Le 05/07/2026 à 12:38, Luciano Notarfrancesco a écrit :
> For dragging I implement allowsSubmorphDragging in the owner, and the 
> morph that I want to move with dragging implements aboutToBeGrabbedBy: 
> returning an invisible morph that is actually dragged with the hand 
> and sends morphPosition: to the target morph each time it changes 
> position. In this way the morph that I’m moving with the drag gesture 
> doesnt change owner, just moves within the owner (typically a 
> ScrollerMorph or a ZoomerMorph in my project). It’s kind of a trick, 
> but seems to work fine so far.

-- 
http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260705/69a12a62/attachment.htm>


More information about the Cuis-dev mailing list