The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
131
votes
3answers
17k 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 ...
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'...
36
votes
4answers
2k 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 ...
32
votes
3answers
3k 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 ...
29
votes
2answers
955 views

UI performance with large image data

Some days ago, I built a small program for some of my colleagues to analyse cell images. One minor part of the user interface was the selection of the region of interest. The images are large and need ...
28
votes
1answer
585 views

Minesweeper: How to Dynamic a lot of graphics with high-speed?

Recently I've implemented Minesweeper in Mathematica. ...
23
votes
2answers
777 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 ...
22
votes
3answers
902 views

Button action monitored with progress bar

Let's say you have a palette with a button that has to do some time-consuming task when clicked: ...
22
votes
3answers
2k 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 ...
22
votes
1answer
788 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 ...
19
votes
2answers
2k 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}]. ...
19
votes
3answers
545 views

Usage Examples for DynamicWrapper

I am looking for practical uses of the function DynamicWrapper . I read documentation and know whatever it says. I would appreciate a clear example of a useful ...
18
votes
4answers
452 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 ...
17
votes
3answers
610 views

Creating a simple Dock Cell that Fades In when Cursor Hover Over It

I like to create dock cells, that enhance the look of my notebooks. Do you know of a simple way to get the functionality in iBooks shown below in the video. I want the dock cell in Mathematica to "...
17
votes
1answer
580 views

How to create interrelated sliders?

Say I want a slider that controls the value of $x$ and another slider that controls the value of $2x$, how would I go about it?
16
votes
4answers
496 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 ...
16
votes
2answers
639 views

Allow multiple GUI elements to react dynamically to interaction with a single element

I was looking at how to reproduce the interactivity in this visualization (the layout can be done like this). Hovering a node with the mouse highlights all edges that are connected to it. How can we ...
16
votes
2answers
399 views

PerformanceGoal option ignored in V11.1

Bug introduced in 11.1 and fixed in 11.2 [CASE:3892079] was created [...] I have reproduced this problem with PerformanceGoal in version 11.1 and reported ...
16
votes
3answers
927 views

How to manipulate a circle in GeoGebra style?

I want to emulate the GeoGebra app. I want to get an effect like this in Mathematica. I don't know how to move whole circle without changing the radius of the circle. My sample code: ...
15
votes
4answers
4k 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 ...
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 ...
15
votes
3answers
402 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: ...
15
votes
1answer
571 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
3answers
256 views

How can I get a FileNameSetter-like dialog inside my own custom dialog?

I am making a GUI for one of my programs. The program is tasked with opening certain data files containing optical spectroscopy data and then doing things which are unrelated to this question. The ...
14
votes
0answers
212 views

Dynamic is significantly faster and more responsive with LinkSnooper

I noticed an absolutely bizarre behavior of Dynamic. A simple dynamic module with SynchronousUpdating -> False is ...
13
votes
2answers
843 views

Creating “detached” plots

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

Interdependent controls in Manipulate [duplicate]

Possible Duplicate: How to create interrelated sliders? locking a value when manipulating variables I need to create a Manipulate with two control parameters ...
13
votes
2answers
514 views

What is FrontEnd`AttachedCell?

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

Basic questions about GUI

I have created the following simple GUI: ...
13
votes
1answer
502 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 ...
13
votes
3answers
257 views

Appearance in Checkbox does not work

Bug introduced in 8 and persisting through 11.2.0 I'm experiencing strange behavior in Checkbox with Appearance: ...
13
votes
1answer
308 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 ...
13
votes
1answer
318 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 Edit->Preferences->...
13
votes
1answer
339 views

Possible bug with second argument of Dynamic

Bug introduced in V9 or earlier and fixed in V10 According to the documentation, Dynamic Details & Options section, especially: For interactive mouse operations ...
13
votes
1answer
334 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 ...
13
votes
1answer
380 views

Using a MacBook's builtin sudden motion sensor with Manipulate

With the following code I can get the value of the "Sudden Motion Sensor", which is build into MacBooks: ...
13
votes
2answers
491 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
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 ...
12
votes
2answers
401 views

Adjusting placement of control objects in a row within a panel

My minimal example ...
12
votes
2answers
302 views

Working with DynamicModule: Tracking the progress of Initialization

How to track Initialization step by step? Any tricky solution is ok. One condition, x should be ...
12
votes
1answer
269 views

Working with DynamicModule: SetDelayed + OwnValues

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

How to create Right-Click ActionMenu at mouse position?

I have a Grid and need to enable some actions on individual values. For this I want to use an ActionMenu that shows on right-...
12
votes
2answers
341 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 ...
12
votes
0answers
234 views

HorizontalGauge causes problem with ScalingFunctions -> “Log”

Bug introduced in 9.0.0 and persisting through 11.0.1 or later HorizontalGauge is new in 9.0.0 I am trying to use ...
11
votes
2answers
320 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
148 views

Visually permute rows of a matrix via mouse dragging

I'm looking for a way to permute the rows of a matrix visually via mouse dragging, for example by clicking and dragging on a row in the MatrixPlot corresponding to the matrix. What would be the best ...
11
votes
1answer
2k views

Placing Manipulate controls in multiple columns

I have a Manipulate construct with a square Graphic on the left side and all the controls placed on the right side. There are so ...
11
votes
1answer
177 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
602 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 <...
11
votes
1answer
149 views

Why is PaneSelector caching nested Dynamics and how to switch it off?

Bug introduced in V10.4 or earlier and persisting through V11.3 CASE:3875733, confirmed It seems that Dynamic content is somehow cached by ...