Hi Hernán, Can you describe a situation when you needed this? Alexandre On 6 Dec 2009, at 04:25, Hernán Morales Durand wrote:
Dear all, I've attached a little cool tool for intercepting Morphic events I just resurrected today, from the class comments:
This morph is a button which, when pressed, begins listening to the hand's event stream. When an even of the appropriate type is encountered, this morph intercepts it and traces the dispatch of the event using MessageSendTree, and opens a SendTreeExplorer on the results. This is useful for debugging parts of the UI process which are otherwise difficult to trace. The eventType can be any of the Morphic event types, but #mouseUp, #mouseDown, and #keystroke are by far the most useful because they are the triggers for the majority of actual UI activity.
This is a list of morphic events to try:
#mouseDown #mouseMove #mouseUp #mouseOver #mouseEnter #mouseLeave #mouseLeaveDragging
#keystroke #keyDown #keyUp
#unknown #click
To install it load first MessageSendTree. The original author is Jesse Welton http://jwelton.v-space.org/squeak/
Cheers,
Hernán <MessageSendTree-hfm.1.mcz><EventInterceptor-hfm. 1.mcz>_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.