Questions relating to the dynamic family of functions in Mathematica, such as Dynamic, DynamicModule and Manipulate.

learn more… | top users | synonyms

2
votes
2answers
179 views

How to format dynamic InputField value using NumberForm?

Background: I want all numbers in InputField's displayed as NumberForm[num,2]; Now, consider the following the snippet of ...
2
votes
1answer
67 views

PaneSelector and options in a Module

Consider the following snippet of code: ...
2
votes
3answers
105 views

How to change FieldSize to be the same as dropdown menu width in PopupMenu?

I've tried the following code to change the FieldSize but I can't make it equal the actual value of MenuSize and I tried to ...
2
votes
2answers
139 views

How can I create CDF applications which adjust their screen dimensions based on the end-user's display configuration?

I am trying to make a CDF application that takes the user's system information (screen information) and adjusts the size of the application to give a seamless experience over different screens with ...
2
votes
1answer
53 views

How can I find ,Which InputField was recently updated?

I have 4 InputFields.I want to find which InputField was recently Updated out of all ...
2
votes
1answer
109 views

Resetting an animation with a custom button

I have the following code, which accepts a function via an InputField, and then gradually draws that function in a Plot using ...
2
votes
1answer
131 views

Progress indicator with shared variables

I'm trying to create a custom progress indicator for a parallelized computation, using Dynamic and SetSharedVariables to display ...
2
votes
1answer
53 views

`Trigger` autorunning when not supposed to

Recently I was trying to make something where one could vary the parameters and press play to see how the animation changed. However, when I tried running the code it would just start automatically. ...
2
votes
1answer
125 views

LocatorPane, Dynamic and deleting locators

Compare the following two code snippets : Version 1 ...
2
votes
1answer
139 views

Defining a function that handles Dynamic arguments similar to Built-ins

Firstly please note that I'm using simply Dynamic behavior to illustrate my question, I'm not asking how to move a Disk or make ...
2
votes
1answer
124 views

Multi-Selection dynamic menus

I'm looking to create dynamic menus with multiple options, and would allow multiple selections. For example, mousing over an object (let's say a black circle of rad 1), a menu would popup at ...
2
votes
0answers
42 views

Non-preemptive evaluation of a dynamic function? [duplicate]

I want to monitor a long calculation that is triggered by the release of a Slider. While one can indicate running calculations when the main evaluation loop is ...
2
votes
0answers
72 views

Problem with DynamicModule in code to import data from several .txt files [closed]

The purpose of the code below is to import data from several .txt files and then plot it using ListPlot. The data files are .txt files with comma-separated data ...
2
votes
0answers
183 views

Front-end glitch when interacting with dynamic content

This is now bugging me too much to ignore it anymore. When I interact with a notebook that has dynamic content, for example moving a slider, Mathematica regularly brings other open notebook windows to ...
1
vote
2answers
237 views

Making a plotted curve interactive

Is it possible to make a plotted curve interactive in the sense that when hovering over it a line is drawn from the "hovered" point to one (or both) of the axes. I did do my homework, I just can't ...
1
vote
2answers
103 views

How can I align the labels of the buttons on a setter bar to the button centers?

I tried to align the labels on the buttons of a SetterBarto the button centers. This is my code: ...
1
vote
2answers
87 views

How to edit InputField while using EventHandler?

I try to edit InputField while using EventHandler's MouseClicked, but the ...
1
vote
2answers
129 views

How to make a Tooltip display dynamic based on a parameter value?

If k=3, then I would like the following to say "Sine Curve, k=3" when you hover over the output of the Tooltip command: ...
1
vote
2answers
273 views

Manipulating PlotRange

Currently, I am working with some dynamic simulations of mechanical/electrical systems (in this case a kitchen scale). The main simulation is running smoothly but while building a nice GUI around the ...
1
vote
1answer
185 views

How to change the values dynamically in a grid

I am trying to write a function which creates a Grid which has no value in the starting and when some value is passed to it, it should show that value in that ...
1
vote
1answer
224 views

How draw dynamic empty rectangle over a bitmap?

I am trying to make a cookie cutter that will extract a small square from a much larger bitmap with a click of the mouse. The LocatorPane appears to be a useful way ...
1
vote
1answer
79 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
119 views

Cell output controlled by CellFrameLabel Checkbox?

The following generates a Cell that returns the state of the checkbox when evaluated: ...
1
vote
1answer
74 views

Changing the number of locators with SetterBar

Typically when adding locators I would use a button i.e. something along the lines ...
1
vote
1answer
89 views

How to control dependent PopupMenus?

I created three interdependent PopupMenus with names demographic, region and ...
1
vote
2answers
117 views

How to compare the InputField values in For loop dynamically

I am using a For loop for printing five InputFields. The loop gets its values from the variable tx. I want to compare the values ...
1
vote
1answer
119 views

Defining a user defined function in DynamicModule

How can I define a user defined function within DynamicModule? For example, if h[x_] := x^2 I want to find ...
1
vote
0answers
47 views

Comparing data sets with fade transitions (Code speed-up)

I am using the utility below for data comparison. However, with my real (more complex) charts the processing is quite slow, so setting the Pause time under ...
1
vote
0answers
63 views

Problem with dynamic interaction between functions?

I have written two functions one for creating list of InputField ...
1
vote
0answers
82 views

Dynamically filling matrix with a[[n,m]] = 1/a[[m,n]]

I'm building a square matrix, with 1s on the diagonal and elements in U the inverse of elements in L, which are random integers drawn from the sequence 1, ..., 9. Given the nature of the problem I ...
1
vote
0answers
67 views

How can I increase the speed of a dynamic visualization of a Raster3D?

I have big list of data. Its length is 56203*100 and I partitioned biglist into 100 sublists, so each sublist length is ...
1
vote
0answers
41 views

SendMail in Dynamic Refresh executed continuously in a loop. UpdateInterval and TrackedSymbols ignored! [closed]

I am writing a program that simulates water storage with combined rain and pump fed supply. To allow a hypothetic employee in control to overview the situation while inspecting some remote locations ...
1
vote
0answers
98 views

How can I control Dynamic property?

I wrote a function, name as testingand saved in .m file. if you evaluate this function, we will get ...
1
vote
0answers
63 views

System Dialog Input with Button

I am trying to create a button that uses SystemDialogInput["FileOpen"] to browse for a file and assigns the file name to a variable. For example: ...
1
vote
0answers
74 views

How can I remove dynamic Property?

I make a function name as IncrementInputFieldsCreation. ...
1
vote
0answers
107 views

Having Dynamic evaluated when off screen

As the title says, I want a cell containing the dynamic solution of a DAE-System to be available over the whole document. I use a lot of different Plots and Sliders scattered over the document and it ...
0
votes
2answers
53 views

Automatically evaluating related cells

I have the cells: In[1]:= l = 2 + 2; In[2]:= l >= 5 After evaluating them: Out[2]:= False Is there a way to evaluate ...
0
votes
1answer
236 views
0
votes
2answers
490 views

Basic Dynamic Interface Programming that returns variables to nb functions

I have a dynamic module that contains some basic PopupMenu's and Buttons but also need to use the variables returned from these buttons and PopupMenu's in my nb functions outside of this ...
0
votes
1answer
114 views

Can't see dynamic updating when my function is evaluated inside Dynamic [duplicate]

I defined a function, solve, with a free variable n, which changes while solve is running. Therefore, evaluating ...
0
votes
1answer
66 views

Retain values between sessions

This is a real newbie question, so apologies in advance for may seem a very dumb question ... I'm trying to understand the various ways in which information can be retained in a notebook between ...
0
votes
1answer
144 views

How to display data in a Dynamic Pane?

How to display data in a Dynamic Pane without exponents? Some data: data = Range[1, 1000]; Slider data has to be added to data: ...
0
votes
2answers
88 views

Why does ; suppress Dynamic output? [duplicate]

Dynamic[x=7]; does not make x dynamic! But Dynamic[x=7;] makes ...
0
votes
1answer
73 views

TabView resets to default when selecting data using Control object

I have 3 drop down boxes on one of the tabs in my TabView. Two of the drop down boxes results are used in a Select statement to ...
0
votes
1answer
68 views

DynamicModule in packages [closed]

I want to write a Package with a function in it. fun[]:= (DynamicModule[{},(a=10;a)]) . This works fine,but when i call ...
0
votes
1answer
76 views

Slow Dynamic Button Does Not Print [duplicate]

Possible Duplicate: Why do buttons with ChoiceDialog freeze the front end? Why is SystemDialogInput failing to return a save file path? Evaluation inside Button stops after some seconds I ...
0
votes
1answer
31 views

Dynamic Updating CreateDialog Problem

In this code, One cannot close the Dialog: {TogglerBar[Dynamic[x], Range[5]], Dynamic[x], Dynamic[CreateDialog[x]]} If I use DynamicModule this way: the Dialog ...
0
votes
1answer
77 views

Labelling Curves Using ListLogLinearPlot within DynamicModule (So Close)

I currently have a large number of time-series datasets in the form where the name and time-series transposed data, so I have a list of lists of names for datasets and their time-dependant data. The ...
0
votes
1answer
31 views

Is SynchronousUpdating->False supposed to make this simple Dynamic example work?

x = 0; Dynamic[{x, Button["+1", Pause[6]; x++]}, SynchronousUpdating -> False] The documentation states that Dynamic and Manipulate will abort synchronous ...
0
votes
1answer
57 views

How can I seperate specific elements from the list? [duplicate]

Possible Duplicate: Question about MapThread and Dynamic I write a function name as inputFieldsList and it returns both ...