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

learn more… | top users | synonyms (2)

95
votes
2answers
9k views

How to manipulate 2D plots?

When it comes to visual analysis, large datasets or data with intricate internal details often makes plotting in 2D useless, as the outcome is either just a fraction of the full dataset, or no details ...
40
votes
0answers
510 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. Intro Usually I don't ...
30
votes
4answers
1k views

Question about collections of custom GUI controls for Mathematica

Background: I have only recently begun programming GUIs in Mathematica, so I have a continuous need for custom controls. I needed a scrollable list control and with the help of Google I found a ...
28
votes
3answers
2k views

Generating graphs interactively (GUI)

I want to create graphs interactively using a GUI. I thought of using a ClickPane[] environment. The code I have (in part borrowed from the Documentation) works ...
21
votes
2answers
491 views

If I have a very large Popup Menu list how can I make that searchable?

Imagine that you have a PopupMenu's list that requires a lot of scrolling through the selections. Is there a way to create a control that will only display a ...
19
votes
1answer
642 views

How can I effectively performance-profile Dynamics?

How to optimize performance-wise a complex dynamic expression (like a GUI) with lots of dynamically updated components, which require different update-frequencies? I was hesitant to ask this question ...
17
votes
3answers
1k views

How to set focus of a dialog window?

I have a dialog, which, when pops up, requests input from the user. How can I set the window up that the focus is on the InputField of the new window (i.e. the ...
14
votes
4answers
3k views

How can I change the color of the bar in a ProgressIndicator?

I want to change the color of the progress bar in a ProgressIndicator. I want the progress bar to be red instead of green. For this purpose I wrote the following ...
14
votes
2answers
293 views

Zoom in on a 2D graph

I have seen many queries on zooming in on plots etc. But I haven't seen any regarding 2D graphs. For eg if I have a graph like Graph[{1->2, 2->3, 3->1}]. ...
14
votes
1answer
171 views

How to make a dynamic nested menu?

There is no dynamic controller that can represent a hierarchical menu structure: ActionMenu can only handle flat action lists. Thanks to Kuba, we know a lot about ...
14
votes
2answers
325 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. ...
13
votes
1answer
290 views

How to make an unremovable modal window?

Is there any way to securely stick a notebook window (e.g. a dialog) on screen that it cannot be closed/removed/hidden by any of the standard OS shortcuts, like AltF4 or AltTab under Windows? The ...
12
votes
2answers
461 views

Creating “detached” plots

Is it possible to create detached interactive plots in Mathematica like those in Matlab, Jupyter (IPython), rather than inline ones? This is interactive GIF from Rodeo IDE for Python as an example, ...
12
votes
3answers
332 views

In InputField, how to prevent Shift-Return from generating a new cell?

When running the following in a notebook (not a deployed CDF file), it can sometimes be annoying that accidentally pressing Shift-Return breaks out of the user ...
12
votes
2answers
2k views

Basic questions about GUI

I have created the following simple GUI: ...
12
votes
1answer
297 views

How to create a notebook element that can replace itself?

I would like to create a notebook element that can replace itself. Here's an example to illustrate: ...
12
votes
1answer
202 views

How to see a code preview (in Experimental`Explore[] or related GUI)

I have been messing around with built in Experimental`Explore[] function. You can call the function in Mathematica yourself to see what it looks like. It is a GUI ...
11
votes
2answers
342 views
11
votes
2answers
251 views

Can one affect the appearance of components of a control?

I'd like to control the appearance of the components of a TabView[] control. Such a control appears constructed of Buttons, ...
11
votes
1answer
99 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 ...
11
votes
1answer
287 views

Possible bug with second argument of Dynamic

Bug fixed in V 10. According to the documentation, Dynamic Details & Options section, especially: For interactive mouse operations ...
11
votes
2answers
273 views

How to suppress Tooltip in built-in templates?

...or maybe switch the message. But I will be happy with no Tooltip at all. I've naively tried with ...
10
votes
1answer
194 views

How to customize the MathematicaClosingDialog.nb?

With Mathematica 10 came the closing dialog notebook, which probably most of you deactivated. (You can bring it back by dechecking "Always exit after closing last window" in ...
10
votes
1answer
391 views

Full documentation for AppearanceElements

As explained in this solution, ListAnimate[Table[Plot[Sin[n x], {x, 0, 2}], {n, 3}]]//InputForm will allow me to view the types of appearance element for the ...
10
votes
2answers
262 views

Difference between action of a Slider and a HorizontalGauge

First time posting. I am working on creating some interactive materials for the engineering classes that I teach and have run into an issue that I cannot puzzle out. I am using a slider to allow for a ...
10
votes
0answers
189 views

HorizontalGauge causes problem with ScalingFunctions -> “Log”

I am trying to use HorizontalGauge[Dynamic[expt], {0.1, 100}, ScalingFunctions -> "Log"], i.e. a gauge with a logarithmic scale. This creates an error, a graph ...
9
votes
1answer
203 views

What is FrontEnd`AttachedCell?

Perhaps it's not accessible from the front end, but what is this so-called attached cell? ...
8
votes
2answers
384 views

How to get a list of available appearance/styles/Methods?

This is a basic question but I haven't found any answer yet :/ Available appearances for Button[] are mentioned in Help, those ...
8
votes
2answers
182 views

Make the selection become the button you click

Let's assume I want a button that, when you click it, get the cell that contains it selected. This approach won't work, it selects the cell containg the selection previous to the click. ...
8
votes
1answer
109 views

How can I defer the loading of a PopupView control until it is used?

Background: I have several PopupViews of which the loadtime adds to the startup time of a program. To improve the perceived performance I want to defer the loading ...
8
votes
2answers
356 views

Strange behavior of CreateDialog's WindowSize option

Compare the two dialog windows, created by the same code except in the first WindowSize has a value while I omit it in the second one. Note, that ...
8
votes
1answer
289 views

LocatorPane, selecting multiple Locators

Consider the following snippet ...
8
votes
2answers
162 views

Appearance in Checkbox does not work

I'm experiencing strange behavior in Checkbox with Appearance: ...
8
votes
3answers
820 views

How can I set the background color to the Popupmenu?

I want to set the Background color of a PopupMenu to blue. I already searched in the documentation center, but I didn't find any ...
8
votes
1answer
150 views

When are EvaluationNotebook[] and ButtonNotebook[] different?

I am looking for a concrete code example where EvaluationNotebook[] and ButtonNotebook[] will return different results. The ...
7
votes
2answers
452 views

How to efficiently get the value from form UI built with dynamic InputField

Here is the code that I used to make a tabular UI. ...
7
votes
4answers
232 views

Make which controls are visible in a Manipulate depend on a control value

I want to make a simple demonstration using Manipulate in which I have one or two input fields show depending on whether or not another control is True or False. How can I achieve such functionality? ...
7
votes
2answers
287 views

Moving controls from Manipulate to a Palette ( or similar GUI object )

Consider the following snippet as a reference. ...
7
votes
2answers
525 views

Detecting double click events

Is there a way to detect double click events? I did not find anything on the doc page of EventHandler. Use case: I want to re-implement the ...
7
votes
2answers
115 views

How to make a notebook take action whenever a particular symbol is defined or redefined?

For teaching purposes, I want to create a Mathematica notebook that will "notice" when the user defines or redefines a variable or function of a particular name, so that it can check the value and ...
7
votes
1answer
248 views

Problems with visual update in GUI

Consider the following. When clicking in "Browse" and then choosing a file, the path will remain the original one and won't change to the one of the file I chose: ...
7
votes
1answer
208 views

Why do images in a PopupMenu sometimes make a program load sluggishly?

In a demonstration, I would like to display a PopupMenu with a list of small PDF images, each weighing in at approximately 50k. The code of interest is below: ...
7
votes
1answer
190 views

Momentary Checkbox

I'm trying to create a demonstration in Mathematica where a checkbox will show an answer, but I only want the answer to be shown while the mouse button is pressed. There seems to be a ...
7
votes
1answer
206 views

Is it possible to embed a notebook as a panel in a java GUI?

I'd like to create a GUI that displays a tree, some text boxes, buttons, and then as a panel, a fully-functional notebook. Is that possible?
7
votes
1answer
515 views

How to create a multi-selectable setterbar with colored buttons

Background: consider the following code-snippet. ...
7
votes
1answer
175 views

Circular AngularGauge does not roll over boundaries

I am using the Mma9 AngularGauge function to develop a controll for a rotating stage. I am experiencing several problems: I am unable to get the values {0°, 90°, ...
6
votes
3answers
265 views

Creating centered inline cell in text cell

The cell corresponds to the textual form ...
6
votes
2answers
287 views

Import data from excel and store it permanently in notebook

I am trying to write the code for doing the following: by clicking a button, import specific data from an Excel file which I select through a dialog window; input a name for the imported data set ...
6
votes
2answers
72 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 ...
6
votes
2answers
125 views

RGBColor, ColorSlider and ColorSetter

A single RGBColor expression displays as a little square, showing the color. I just found that this little square is both a tooltip and a button. It seems to be new ...