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
1answer
109 views

Using TrackingFunction to set a Control variable for multiple Controls more efficiently

The variable t needs to reset to 0 if any of the other variables tab1, tab2, or ...
3
votes
2answers
86 views

Dynamic Interpretation Button Label Loses Formatting on Copy and Paste

I have an Interpretation Button that displays its label correctly on evaluation. However, when I copy and paste it as input the ...
4
votes
1answer
99 views

Problem controlling layout of Manipulate-generated GUI

For example: ...
3
votes
2answers
164 views

How can I control label output for a HorizontalGauge

I am trying to build a HorizontalGauge control for use in a Manipulate. The gauge should enable the user to select a day of the month. The following code seems to work fine (with one exception, noted ...
3
votes
1answer
89 views
1
vote
2answers
84 views

Coupled controls in a Manipulate expression

I have a paragraph Manipulate[ expr, { {a, 1}, 1, 4, 1}, { {b, 2}, 2, 5, 1} ] and I want variable b to be bigger than a at all times. I have ...
3
votes
2answers
153 views

Manipulate Properties to Add Scroll Bars in Dynamic Object?

I am interested in trying to produce a dynamic object of a plot of 20 functions, where users are able to select one of 20 functions in given plot. Here is my oversimplified non-working code: ...
4
votes
0answers
64 views

What are the possible options for the Appearance option of IntervalSlider?

IntervalSlider has a styling option Appearance -> ..., where possible options include ...
5
votes
1answer
122 views

Is there a way to configure the Ask function so that input fields can be optional?

I see that FormFunction includes settings that could work, but I can't seem to find any way to get it to work within the "Ask" framework. Related: https://reference.wolfram.com/language/tutorial/...
3
votes
3answers
257 views

Array of checkboxes in Manipulate

I try to produce an example where I can mark check boxes corresponding to 10 integer variables which can be 1 or 0 and the result should be the total of marked variables. As an example for three ...
4
votes
1answer
147 views

How to implement Controls for operations on an image with this scheme?

This post is somewhat connected to my past post "how to get a deformable mesh from this binarized image" although not quite important for what I intend to ask here. I have an image of an animal ...
16
votes
2answers
650 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 ...
17
votes
3answers
620 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 "...
6
votes
1answer
155 views

Constraining locators in a locator pane to a specified data set

What is the best method to constrain multiple locator points to a set of data? A while back, I needed a program that could perform a linear fit for a specified range of data points. In an effort to ...
9
votes
1answer
169 views

How to create and use my own *.tr FrontEndResource and FrontEndResourceString files

Various Mathematica user interfaces are Mathematica notebook files. It seems to be quite common for these notebook files to contain only part of the information in themselves and to load different ...
3
votes
1answer
135 views

Pretty ClockGauge: how to remove Second needle? [closed]

I have the following ClockGauge: ...
29
votes
2answers
965 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 ...
3
votes
0answers
61 views

InputField does not accept all single-character expressions

When I enter ESCinfESC or \[Infinity] into an InputField, such as that below, the input is ...
4
votes
1answer
94 views

Manipulate with generated controls for setting each bar in a bar chart

I would like to create a list of parameters, then create a Manipulate with these parameters. Similar to this piece of code: ...
4
votes
0answers
104 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
237 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
143 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
112 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
91 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
118 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
104 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
101 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
328 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 ...
13
votes
1answer
279 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
106 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
215 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
138 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
274 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
569 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
117 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
143 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
211 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
118 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
229 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
211 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
168 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
525 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
45 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
46 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
466 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
142 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
128 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
497 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. ...

1 3 4 5 6 7 11