The eventhandler tag has no wiki summary.
2
votes
1answer
47 views
Delay of events detection dependent of “MouseDown” position
Let's say we have a Rectangle with color which depends of CurrentValue["MouseOver"]:
...
1
vote
1answer
49 views
How to preserve focus on InputField after Print?
If you press Enter in the example below it should become clear that test is being adding to the textbox instead of the current ...
2
votes
1answer
80 views
Change the behaviour of a LocatorPane
Normally, LocatorPane detects any single click as in the following example:
...
2
votes
3answers
107 views
Changing the Actions in EventHandler
I would like to be able to change which action specified events take depending on some condition. For example, I have established a SetterBar
...
3
votes
1answer
96 views
How can I improve my Zooming code?
I recently started to work with the EventHandler function to make it possible to Zoom, Pan, etc, with only the use of a mouse. I have found a way to zoom that is ...
0
votes
0answers
113 views
Is it possible to create an event handler for changes in values of variables?
I am creating a networking application in Mathematica that runs a non-stop simulation, and periodically receives new information from the remote server that affects the simulation.
Whenever values ...
3
votes
1answer
98 views
Creating event handler with ImplementJavaInterface inside a package
I am trying to make my Mathematica function to serve as an event handler for the events generated by a Java object.
Specifically, I have a Java object that connects as a client to a server that ...
2
votes
1answer
83 views
Detecting change of a variable (detect mouse clicks)
I want to do something when the mouse is clicked. But it shouldn't matter where the mouse is clicked, so I can't use EventHandler. Instead, I'm trying to do it like ...
1
vote
1answer
65 views
Can't see updating performed by NMinimize[…,StepMonitor->(…)] outside of Button in which it's called [duplicate]
I've made a peak-fitting GUI in which I have a "Fit" button that, when pressed, calls NMinimize[...,StepMonitor->(step++)] to minimize a sum of squared ...
3
votes
1answer
156 views
Evaluation order control
This question is related to Evaluation order of Button[]'s action
Concusion was, Button[]'s actions are evaluated in preemptive link so "the code that needs ...
91
votes
1answer
13k views
Mathematica Minecraft
Some time ago I asked myself: with all these great graphics and interactive capabilities of Mathematica, what kinds of 3D games can be implemented in it? And the answer which came to mind is ...
1
vote
1answer
127 views
EventHandler {“MouseDown”, 1} with PassEventsDown -> True not working as expected
I want my EventHandler to respond only to left mouse clicks and pass the right mouse click to the built in event handler.
I have tried
...
8
votes
1answer
166 views
EventHandler not working within DateListPlot (?)
I have some {date, value} data:
data = Transpose[{AbsoluteTime /@ Thread[{2012, Range[12], 15}],
RandomInteger[10, 12]}]
...
3
votes
0answers
71 views
Different actions with dragging and clicking points in same graphic
On a graphic (in this example a simple plot), I need two points to move when I drag with the mouse, and these points must move to location {1,1} when I click on them.
This is how I got it to work, ...
3
votes
1answer
217 views
Problem with dynamic MouseAppearance updating while “MouseDown”
my problem is with combining EventHandler and MouseAppearance. I want to change cursor appearance if I have primary button ...
3
votes
1answer
81 views
In a DynamicModule, is it possible to use multiple EventHandler declarations? [duplicate]
Possible Duplicate:
Wrapping EventHandler by Table
I am running Mathematica 7. However, I am new to using Dynamic, ...
8
votes
0answers
272 views
How to improve these WASD + mouse look 3D controls?
Insipred by this question and the corresponding answer I've written a code for full-screen exploration of 3D scenes using standard WASD and mouse look controls. Here it is.
...
2
votes
1answer
164 views
Dynamically updating interactive objects in Mathematica
Is it possible to create interactive code in Mathematica (via EventHandler[] or Manipulate[] perhaps) that continually updates some calculation based on external data in the time when no user input is ...
15
votes
3answers
388 views
Detecting KeyUp events
Is there a way to detect when a key is released, similar to
EventHandler[InputField[], {"KeyDown", "k"} :> Print["k pressed"]]
It seems such detection isn't ...