Restoring a Morph's Default Mouse Handling
I always forget how to do this, so I added a chapter to the online book: As soon as you define #handlesMouseDown: in your Morph subclass, you lose the default behavior where a morph is picked up when clicked on. To restore this behavior, compile the following two methods in your morph class: mouseDown: anEvent anEvent hand waitForClicksOrDrag: self event: anEvent. startDrag: anEvent anEvent hand grabMorph: self. http://book.pharo-project.org/book/LanguageAndLibraries/GUI/restoringdefault... -- View this message in context: http://forum.world.st/Restoring-a-Morph-s-Default-Mouse-Handling-tp4097353p4... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Thank you. Your Morphic hints are very welcome. Best regards, Helene. -- View this message in context: http://forum.world.st/Restoring-a-Morph-s-Default-Mouse-Handling-tp4097353p4... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (2)
-
Helene Bilbo -
Sean P. DeNigris