Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • $\begingroup$ I think that there is a somewhat simpler way to achieve the same: You can use as the first argument to the DynamicWrapper something like the following: Slider[Dynamic[x, (x = #; trigger = True) &], {1, 4}, ContinuousAction -> False, Appearance -> "Labeled"]. This is not only somewhat simpler, it also will work with gui elements which are not triggered by the mouse, as e.g. InputField... $\endgroup$ Commented Mar 30, 2013 at 20:42
  • $\begingroup$ @Albert Please see edit about my problems with your proposed solution. Concerning those gui elements that are not mouse-driven, one can easily modify the underlying EventHandler to handle those. $\endgroup$ Commented Mar 31, 2013 at 9:46
  • $\begingroup$ I now see that it was not enough to just post that fragment to get the correct behavior. I think the complete solution does work as you want, but I needed to add some to make the controller variable change continuously. As this is now too long for just a comment I added an extra answer... $\endgroup$ Commented Apr 2, 2013 at 10:12