Questions tagged [gui-construction]

GUI-construction involves everything that is used to programmatically construct a custom graphical user interface under Mathematica.

Filter by
Sorted by
Tagged with
4
votes
0answers
103 views

Dynamic performance issues related to Pane's ResizeArea

Following AdvancedDynamicFunctionality / Front End Ownership of DynamicModule Variable Values we can use DynamicModule's variables to reduce the time spent on ...
13
votes
0answers
236 views

Tooltip/EventHandler misaligned with scaled graphics primitives they wrap

Bug introduced in 8.0 or earlier and persists through 11.3 It affects all event based wrappers for affected primitives. E.g. EventHandler. Which makes it a big ...
2
votes
1answer
124 views

How to manipulate the contents of PopupMenu function?

I intend to have a first PopupMenu function with a list of parameters {a,b,c}. I want a second ...
2
votes
1answer
109 views

Controlling the motion of points in Manipulate when there are multiple paths

I recently asked a question about controlling a point with a slider, that stops at a value, waits a bit, then continues moving. The solution worked well and was much simpler than what I had done ...
3
votes
1answer
88 views

Controlling the motion of points in an animation

I am looking for a better way to show this behavior on a pressure-composition diagram for immiscible liquids (two black dots show behavior at different x-positions, only one is present otherwise): ...
3
votes
2answers
113 views

SetterBar is too long. How to set option of ControlType in Manipulate?

For example Manipulate[i, {i, 1, 100, 1}, ControlType -> SetterBar] will have a long setterbar, I want it wrap to several lines. The ...
5
votes
1answer
102 views

Interactive eraser for a ContourPlot

I recently had my interest peaked by the excellent thread "Exclude data from a list." In particular, the second answer which constructs an interactive eraser which allows one to delete data points in ...
3
votes
1answer
94 views

Dynamically update RadioButtonBar

I want to create two RadioButtonBar objects that offer choices which are dynamically updated by a CheckboxBar. I also need to ...
-1
votes
2answers
296 views

Trying to get the values of sliders from a module

I generated n number of Sliders using the idea from Manipulate with a variable number of sliders But I need the updated values of these sliders to use to evaluate ...
12
votes
1answer
267 views

Working with DynamicModule: SetDelayed + OwnValues

Shortly, definitions in form of e.g. x:= RandomReal[] have to be avoided inside DynamicModule[{x}, ...]. Why?, this ...
3
votes
1answer
105 views

NB loading code broken in MMA 10 is there a workaround?

In MMA 9 I use the following code to load multiple nb's and close them after they are evaluated. In MMA 10 this code is broken. It appears that MMA 10 takes far longer to evaluate the code than the ...
1
vote
1answer
199 views

Dynamic and TabView mayhem

What I'm trying to do is damn simple but it seems like Mathematica is extremely ill-designed for this ... Here is a very simplified form of my code to show the basic idea. I have a variable number of ...
6
votes
3answers
135 views

How to create a window which will close in a certain amount of time?

I'm currently making an interface in Mathematica and I'll need to bump a window out and then let it close itself in a certain amount of time. Here's an short example to illustrate the effect: ...
5
votes
1answer
252 views

switch between automatic and manual updating

I have a plot with interactive controls. I'd like to give the user the option between having the plot automatically update (when the plot's parameters are changed with the slider) and having the ...
10
votes
2answers
564 views

How to access “Choose Color Scheme” Programmatically

I am designing an App and I want to use the "Choose Color Scheme" tools inside Button. I am looking to have this tool in popup window when the Button is clicked but I can't find the command to get ...
15
votes
2answers
2k views

Programming the fiver game

Obviously, even if I ask a lot of question I am, obviously, still a dummy!!!! I want to program the fiver game. It's a very simple game played solitary on a $5 \times 5$ the rule is elementary : if ...
3
votes
1answer
114 views

How to center Title/Label in a Bullet Gauge rotated? and how to add a second line?

My target is make a dashboard with VERTICAL bullet gauges (that is not available in Mathematica, only the horizontals), a previous Q & A helped me to obtain vertical gauges (that its good but I ...
5
votes
1answer
134 views

Synchronizing code in Dynamics with other procedures

I have huge code and some problem. I don't know how to make example. I'm afraid I can't make good SMALL example to demonstrate you the problem. So I'll try to explain. Maybe somebody know about such ...
6
votes
1answer
206 views

Working with Dynamic: Synchronization with EventActions ( and other preemptive evaluations)

I would like to make a simple "game": Display a dialog with a random letter, if the same letter is pressed on the keyboard, the display changes into a string ...
2
votes
1answer
102 views

Is it possible to change the color of a Control option when selected?

For this Control inside Manipulate (using Setter or ...
4
votes
3answers
226 views

Manipulate controls don't work

I find one solution to make +/- buttons near Slider Control of Manipulate. But I don't understand why it works so bad. ...
10
votes
3answers
205 views

questions with hidden but revealable hints and answers

I would like to create a notebook with questions that have attached hints and answers. The hints and answers should be hidden, but the display should clearly indicate (e.g., with a button) that each ...
6
votes
1answer
154 views

How to refuse close Dialog when press Esc Key

As you can see in the documentation of CreateDialog: If the dialog contains no DefaultButton or ...
13
votes
1answer
495 views

Clickable graph

Can someone help me to make a clickable graph? Graph[{1 -> 3, 2 -> 3, 3 -> 6, 4 -> 6, 1 -> 5, 5 -> 4, 6 -> 2}] I found that ...
1
vote
0answers
39 views

Expand section button [duplicate]

How to give section expand button as done here ?
6
votes
1answer
104 views

How-to generate a set of random points in a dynamic region

Description It probably has a simple fix but I can't seem to find a way. I am looking to generate a set of random points within a dynamic region. Each time a new type of region is selected, the ...
1
vote
1answer
43 views

'Contingent' user interface (DialogNotebook with PopupMenus that depend on previous PopupMenus)

I'm creating a user interface for data entry. It makes sense for the content of certain menu items to depend on the information that has been entered earlier on the form. In a trivial example, ...
18
votes
4answers
448 views

Internal DynamicModule steals scope of external DynamicModule

I have two dynamic objects, one nested in the other. Both have their own functions defined, as follows. I have simplified them to the point where they don't make much sense, but can still illustrate ...
3
votes
1answer
131 views

Dialog notebook with multiple popup menus

I'm trying to create a user interface in Mathematica; the user will enter specified information, it will be processed, and then data will be inserted into a MySQL database. The pieces work ...
2
votes
1answer
126 views

Using IF commands in a Dynamic Module

Is there a way to use a functional If command in a DynamicModule? I have a code which runs a car driving up a street using ...
13
votes
2answers
490 views

Tips to move from functional programming to GUI-based applications

Even though this forum has some questions related to Mathematica programming tips I think that we still don't have specific help for those who want to learn to efficiently create GUIs in Mathematica. ...
3
votes
1answer
72 views

Basic computations in frequncy domain

I have been trying to find documentation on performing basic operation with transfer function models but have been unable to do so. By basic operation I mean, e.g. Multiply controller transfer ...
3
votes
0answers
40 views

Text in Popupmenu that cannot be chosen

Is it possible to make a popupmenu where there is text inserted into the options which you cannot choose. For instance: a popup menu with animals devided into two categories. Birds: duck, eagle, ...
7
votes
2answers
402 views

Constrain Locator to specified region

How can I constrain the locator to stay within the region defined by RegionPlot? When the Locator remains within the region, <...
6
votes
2answers
120 views

Annoying behavior of a dynamic angular gauge

I want to do something that can be simplified into the following toy example: I want to dynamically show the count down to a future date on an AngularGage. The ...
1
vote
3answers
144 views

Correcting problems with the controls in a Manipulate

I am developing a toy application to teach me how to generate a more complex CDF app. The current toy app is taking integral. ...
1
vote
1answer
133 views

Building a interactive application that accepts lists of arbitrary length as inputs

I have the following function (Class Shape Transformation): cst[wl, wu, dz] where wl and ...
6
votes
2answers
130 views

Abort an EventHandler?

How do I stop an EventHandler? I'm trying to allow the user unlimited inputs on the arrow keys UNTIL certain conditions are met, and then stop the ...
3
votes
0answers
60 views

Minimap of a notebook? [closed]

I usually code in Atom or Sublime, both of which have a very nice high level outline of the entire file called a minimap. Here's an example: It scrolls with you and highlights the area of the file ...
3
votes
1answer
89 views

How to mimic CheckboxBar's Method->“Active” option in a Manipulate's checkbox control?

CheckboxBar has a Method -> "Active" option that allows you to click the label to change the state of a checkbox. I would ...
6
votes
4answers
336 views

How to make a panel disappear?

I would like to make a panel look like a ChoiceDialog. Let's say a have a panel like this: ...
1
vote
1answer
44 views

How to remove the waveform box for midi Sound?

For midi sounds, the bottom box in the DisplayForm is always blank, I'd like to be able to remove it: Sound[{SoundNote["C"], SoundNote["G"]}]
0
votes
1answer
125 views

Type of Dynamic object and GUI-construction for file import [closed]

It's not clear what the Dynamic objects really are. For example, if I define the following x=1; Dynamic[x]; y=Dynamic[x]; we can see that all the three are ...
63
votes
2answers
1k views

Guidelines for planning custom GUI in Mathematica

This post is here to save your time during GUI development in Mathematica. And one way to do this is to know where limits are and to be aware of features that are awaiting. Background Usually I don'...
1
vote
0answers
56 views

Is there a simple way to get tooltips to work on the elements of a PopupMenu?

I want my PopupMenu items to be short (codes), with tooltips to provide a longer description if the user hovers over the location. The direct approach, to wrap each item in a Tooltip, does not ...
6
votes
1answer
121 views

Why does this construct give no output control object?

Control@{h[3], 0, 1} It is puzzling. (The motive for h[i] is to build a list of controls.)
3
votes
1answer
91 views

How to make a set of interdependent popup menus work?

Here is my code that is not working. ...
11
votes
1answer
175 views

Speed up Dynamic for graphical interface

I am trying to create a user interface where I can click on certain points in a set of data and save them into a list that can be used later in my code. The problem is it is currently sluggish. Is ...
1
vote
1answer
126 views

Checkbox in manipulate not properly working

This question is related to another question of mine : How can I add a checkbox to a Manipulate expression?, but I'm still unable to make the checkbox to work properly. Here's a MWE code, from my ...
4
votes
0answers
80 views

How to set Ticks for an AngularGauge?

How do you set custom ticks on an AngularGauge. ...