The tag has no wiki summary.

learn more… | top users | synonyms

106
votes
1answer
21k 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 ...
16
votes
3answers
527 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 ...
9
votes
0answers
340 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. ...
8
votes
1answer
209 views

EventHandler not working within DateListPlot (?)

I have some {date, value} data: data = Transpose[{AbsoluteTime /@ Thread[{2012, Range[12], 15}], RandomInteger[10, 12]}] ...
6
votes
1answer
86 views

How to handle keyboard events for unselected item in CDF?

How can I force the keyboard input to work for this cell without clicking on it after I evaluate or showing a blinking selection cursor? This is for running CDF games in a browser. ...
5
votes
1answer
220 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 ...
5
votes
3answers
342 views

Hovering mouse cursor over a plot to display a “corresponding” point in another plot

(Apologies for not having gotten around to responding to and accepting answers on my other recent questions—as a meticulous and thorough type, I'd like to take my time to fully comprehend and ...
5
votes
1answer
100 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, ...
4
votes
1answer
114 views

Detect a graphic primitive inside a Graphic

Please excuse me if that question is too basic but I couldn't find anything in the documentation or on here. If you consider the following Graphic I would like to ...
3
votes
2answers
113 views

EventHandler and Refresh rate

Based on the example of the Documentation of MousePosition, Properties and Relations, here is my test code using "MouseDragged" instead of "MouseClicked": ...
3
votes
1answer
98 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, ...
3
votes
1answer
134 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 ...
3
votes
1answer
226 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
120 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 ...
2
votes
3answers
168 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 ...
2
votes
1answer
199 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 ...
2
votes
2answers
96 views

Capturing an F1

I teach an Intro to Mathematica course, and one of the things I try to reinforce early on is just how helpful Mathematica's help is. In the very first lab for the course, I even give the students a ...
2
votes
1answer
117 views

Change the behaviour of a LocatorPane

Normally, LocatorPane detects any single click as in the following example: ...
2
votes
1answer
116 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 ...
2
votes
1answer
86 views

DynamicModule with Plots and EventHandler

I am making a little animation in Mathematica, along the lines of some of the Wolfram demo projects. I'd like to animate a simulated trajectory of a random process (say a Poisson process), and while ...
2
votes
2answers
97 views

Detecting changes of variables' values

Is it possible to detect (and create a trigger for) an event when any of the variables defined in the notebook changes its value (for any reason)? I need to know which variable got changed and what ...
2
votes
1answer
106 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
79 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 ...
1
vote
1answer
96 views

BindEvent binding own function

I need to change property of window when button gets pressed. There are pretty enough examples on Wolfram's website, but all they bind predefined function "Print[]" and I have no problems with ...
1
vote
1answer
96 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 ...
1
vote
1answer
177 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 ...
1
vote
1answer
85 views

Extract Graphics properties using EventHandler

One can find primitives' properties such as the radius, the center or the color of a Disk using Cases by using: ...
1
vote
1answer
60 views

InputField Insertion Point Movement

I am trying to make the Return Key move the insertion point to the end of the input field's text. Please see the example below for the problem I am facing. Namely, when the return key is pressed, the ...
0
votes
2answers
76 views

EventHandler and ActionMenu

Here is the bit of code causing me issues: ...
0
votes
0answers
162 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 ...