A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [eventhandler]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
227 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
56 views

Plotlabel in Monitor

I am using three For loops and would like to show a series of plots in the same window. I am using Monitor and I want to see the parameters in each plot. Here is my code: ...
2
votes
1answer
197 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
131 views

How to update plot with EventHandler without using Print

Consider the following code: ...
1
vote
1answer
209 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
32 views

Modifying this GoL implementation to make it sensible to clicks on the corner of the array

I'm interested in modifying this interactive implementation of the Game of Life http://demonstrations.wolfram.com/RealTimeSimulationOfTheGameOfLife/ to make it sensible to click events on the ...
1
vote
1answer
345 views

How to combine manipulate and eventhandler

I combine manipulate and eventhandler, now I can change the controller when working on eventhandler, but how to change the value in eventhandler when I control the manipulate controller? ...
1
vote
1answer
67 views

Multiple calls to SetOptions with NotebookEventActions: How to retain earlier custom event handlers?

I have a module defining handlers of KeyDown events that I reuse in various notebooks. In some cases I need to define separate handlers for additional keys. Unfortunately, later calls to ...
1
vote
2answers
134 views

How does EventHandler work inside a Graphic

I've created an application with the User Interface being a Graphic with lines, polygons etc. The functionality I need is: to be able to place the objects anywhere in {x,y} coords of the Graphic. to ...
1
vote
1answer
214 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
269 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
610 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
43 views

Why are changes to dynamic value not delivered to all GUI elements as they happen?

The widget below is just a toy that I put together so that I could ask this question. ...
1
vote
1answer
170 views
1
vote
1answer
192 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
119 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 ...
1
vote
0answers
28 views

Why does dragging a point with a Tooltip interfere with MousePosition[“Graphics”]?

Consider the following toy example of EventHandler used to implement dragging a point around in a Graphics: ...
1
vote
0answers
83 views

Custom FrontEndToken calls

So I've been playing with FrontEndTokens recently and discovered that there are some of them that don't seem to have a standard-usage way of being called. For ...
1
vote
0answers
125 views

Making graphic objects disappear interactively

I am trying to create a program where dots on a plane disappear when an object passes over them. I am using EventHandler to code the arrow keys for control of the ...
1
vote
1answer
121 views

Very slow updates using LocatorPane [closed]

Making an app for conic sections I need that when point ptA is moved, point ptB shifts the same distance and in the same direction of ptA (i.e. a translation). This is the (simplified) code. ...
1
vote
0answers
76 views

How can I perfect this game for Wolfram Demonstration publication? [closed]

When the messages change the window inactivates, and when I try to host an interactive CDF on my site it turns red and says something about numbers having to be scaled or offset. Any help? I'm ...
1
vote
1answer
71 views

Using Loop to create mutiple EventHandlers

I have a problem, that is I want to use loop to create multiple EventHandlers, but my code shows nothing. What can I do? ...
1
vote
0answers
106 views

Strange behavior of my vertex eventhandler!

I have two level EventHandler. The inner one is made of vertex of Graph and the other outer one is of the Dynamic Graph. (1) If I select a arbitray place on the Graph except a vertex, then every ...
1
vote
0answers
609 views

Is it possible to create an event handler for changes in values of variables? [duplicate]

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 ...
0
votes
1answer
48 views

Help with actions in EventHandler

I am trying to write a program where the user types on the keyboard in a specified location, and Mathematica outputs what you are currently typing, plus a prediction that is updated in real time of ...
0
votes
1answer
99 views

How to trigger an event whenever the variable controlled by an InputField is changed?

Consider an an InputField object of the form DynamicModule[{x = 0}, {InputField[Dynamic@x],Dynamic@stuffDependingOnx} ] ...
0
votes
1answer
383 views

Using variable with delay in WhenEvents in NDSolve

I have a system of differential equations which is solved correctly. However, I want to trigger two events, one of which depends on the "time elapsed" after of the first event trigger. Is it possible ...
0
votes
1answer
174 views

How can I manually pick the data out of the image of a plot?

edit: The automatic way listed here doesn't work for an application like mine in which there are several curves on the same plot that all have the same markers, but you only want one curve (it will ...
0
votes
1answer
152 views

What is wrong with combining two programs with event handlers?

I can delete the unwanted nodes of a RandomGraph by double-clicking on them from the first program, and I can change the positions of the nodes by dragging them ...
0
votes
0answers
37 views

Is there a “LostFocus” event for controls? [duplicate]

In .Net controls have a LostFocus event that fires when the control is no longer the active object; tabbing to next control or clicking somewhere else on the ...
0
votes
0answers
65 views

How to implement multiple EventHandlers? [duplicate]

n00b Mathematica user here. I wrote this code: ...
-2
votes
2answers
178 views

EventHandler and ActionMenu

Here is the bit of code causing me issues: ...