Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

The EventHandler documentation, More Information section, lists 5 mouse events:

"MouseClicked" "MouseDown" "MouseDragged" "MouseMoved" "MouseUp"

There is at least one other mouse event that can be used that is not listed in this documentation: "MouseEntered"

How can I find out all the possible arguments that can be used as events for EventHandler?

Edit

Also in this answer we learn of an undocumented option HandleShiftReturn which works as a "name" with MenuCommand. From the documentation:

{"MenuCommand","name"} menu command with specified name chosen

How do we find out all the possible "names"?

Edit #2 19th June

I got a reply from tech support. They state that "MouseEntered" and "MouseExited" in the GUI Kit are different from the ones in EventHandler and the ones in EventHandler are not yet ready for public use hence not documented. I didn't get an answer to my request for a full list of events for EventHandler (that are public).

Edit #3 30th June

Contacted tech support again after this question. Tech support advise that there is no (documented) way to use the shift, option, control, and function keys with EventHandler. Further they said there is no way to use key combinations with EventHandler. Still no closer to getting a complete list of events.

share|improve this question
    
How did you find "MouseEntered"? –  belisarius May 30 '12 at 3:37
    
It was in the interactive balance sheet CDF example that Wolfram released. –  Mike Honeychurch May 30 '12 at 4:10
    
There is also "MouseExited" (somewhere in MathematicaNavigator.nb) –  kguler May 30 '12 at 10:13

1 Answer 1

I haven't looked deeper into this but have you tried all the events which you can find in the documentation of GUIKit?

Especially here: GUIKit/ref/GUIInformation

The list at the bottom contains at least all events you have mentioned:

{"Action", "ActionPerformed", "Ancestor", "AncestorAdded", 
"AncestorMoved", "AncestorRemoved", "AncestorResized", 
"CaretPositionChanged", "Change", "Component", "ComponentAdded",
"ComponentHidden", "ComponentMoved", "ComponentRemoved",
"ComponentResized", "ComponentShown", "Container", "Focus",
"FocusGained", "FocusLost", "Hierarchy", "HierarchyBounds",
"HierarchyChanged", "InputMethod", "InputMethodTextChanged", "Item", 
"ItemStateChanged", "Key", "KeyPressed", "KeyReleased", "KeyTyped", 
"Mouse", "MouseClicked", "MouseDragged", "MouseEntered", 
"MouseExited", "MouseMotion", "MouseMoved", "MousePressed", 
"MouseReleased", "MouseWheel", "MouseWheelMoved", "PropertyChange", 
"StateChanged", "VetoableChange"}
share|improve this answer
    
I hadn't thought of this. –  Mike Honeychurch May 30 '12 at 23:25
    
@MikeHoneychurch Any positive results while testing these? –  Kuba Mar 23 at 9:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.