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
139 views

What is the best way to localize variables in a custom control

I am trying to build a custom control that is just a combination of a group of smaller controls that combine to give the final value, but with the final value only updating when the controls stop ...
0
votes
1answer
65 views

Dynamic with side-effects

I'm working on a UI where I want to display many images, too many to have in memory at once. So I'm trying to implement a "paging" system to display a handful of images at a time and only load on ...
2
votes
1answer
109 views

ClipPlane orientation

I'm trying to clip a cone both from top and bottom using IntervalSlider. I'm able to clip it from the bottom but not from the top. ...
5
votes
0answers
129 views

InputField GUI Glitches

Has anyone observed the following GUI glitches in Mathematica (see screenshots below)? I have noticed this beginning to occur from Mathematica 10 onwards. I've only tested their occurrence with the <...
3
votes
1answer
52 views

How do I prepare images to be used as Appearance arguments?

So this is really in many ways a follow up to this question: Complete list of FrontEndResources For a while now I've been using FrontEndResource specified ...
3
votes
0answers
51 views

How to temporarily turn off log messages?

I'm using GUIKit in Mathematica 11.0, which throws an error message whenever a window or panel is shown. I know GUIKit is deprecated but I don't want to port a whole project to the newer controls. ...
4
votes
1answer
326 views

Create a checkbox that is automatically checked when other checkbox is already checked

I am trying to build an UI for my algorithm, to handle some input parameters. Under that scope I am building a checkbox menu. What I need to do is nest some checkboxes under some parent checkbox, so ...
11
votes
1answer
148 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 ...
1
vote
0answers
50 views

How do I make a mathematica cdf which imports data and plot them? [closed]

I have a python program which could browse for an excel file containing data, load them such that each column is automatically recognized and then make 3D graph or density plot from the loaded data. ...
0
votes
1answer
65 views

Issue with two dimensional manipulators

I want to have a dynamic number of manipulators. ...
0
votes
1answer
134 views

Why doesn't my Manipulate expression work? [duplicate]

I want to change 3 parameters: Subscript[I, dc], Subscript[B, dc], Subscript[μM, 0] and see changing on 2 graphs: ...
0
votes
0answers
34 views

How to create Dynamic InputField Grid for matrix variable? [duplicate]

I need to make an InputField Grid change the values of a matrix variable without creating a ton of dummy variables. Minimal ...
0
votes
1answer
66 views

Setting state with UI (labeling tool) [closed]

I think I've finally got an idea for project to test out the neural net capabilities in Mathematica 11, but first I need to label some data. I'm trying to put together a quick little UI, but I got ...
-2
votes
1answer
329 views

How to dynamic update the content of a Table with dynamic rows? [closed]

I worked this way, but it does not work as expected: The rows of the table: nrows = Slider[Dynamic@n, {0, 5, 1}]; The contents of the table: ...
1
vote
0answers
72 views

How to update a Text Field Widget during evaluation of a function

My problem is rather simple, I need that the TextField widget named Sumfield updates its value during a function evaluation, in ...
5
votes
3answers
254 views

How to stabilize the overall appearance of a Manipulate widget?

NB: I've seen other post's that ask similar questions, but I haven't found one whose answers address the problems described here. The code below is a very artificial example that illustrates the ...
1
vote
1answer
98 views

TemplateBox based controllers. Not editable InputFieldBox

The goal is to have controllers fully customizable from a stylesheet level. At the moment one can't add MouseAppearace to a ...
1
vote
1answer
45 views

Strange behavior of Manipulate with arbitrary number of control variables

I am creating a Manipulate that evaluates a function that takes an arbitrary number of binary control variables. For example, the ...
5
votes
2answers
87 views

Dynamic not responding to Refresh TrackedSymbols

I am attempting to creating a UI dialogue that updates itself as selections are made. The issue is the UI is not updating itself even though the dependent variables are being updated. A very minimal ...
3
votes
2answers
116 views

How to make and Index with a popupmenu?

I have a few notebooks, say nb1, nb2, nb3, nb4. I would like to make a Index with a popupmenu so that when a clicked in each item,labeled nb1, nb2,..., then the respective notebook open. I've been ...
2
votes
2answers
102 views

Why does `Locator` changes graphics depending on `ImageSize`?

This is driving me nuts. Consider this Manipulate command ...
4
votes
1answer
107 views

How can I make my code wait until two actions are done?

This question was inspired by yode's question found here. I think yode asked the wrong question, so I am asking what I think is the right one. Consider a situation in which the user has to choose ...
2
votes
1answer
117 views

How can I prevent precision of value displayed by a labeled slider from changing?

I'm experiencing a small glitch on the label of a slider. When I change the value of another slider, the time slider may display its value at higher precision (5 digits after the decimal point), ...
2
votes
2answers
67 views

Using a setterbar to set text alignment while keeping the current vertical cursor bar position

The code below generates a SetterBar that dynamically updates with the current text justification (where the vertical cursor bar is located) and allows you to change it to a new justification. See gif ...
3
votes
2answers
96 views

How to get sliders to represent lower $\leq x < y < z \leq$ upper?

Let lower and upper be fixed constants, with lower < ...
1
vote
1answer
69 views

Manipulate button, that triggers function returning random value, doesn't recall the function on each click

I've created a piece of code that returns random color scheme: getRandomColor = ColorData["Gradients"][[RandomInteger[{1, 51}]]] Now, I'm trying to use it with ...
4
votes
1answer
103 views

Making button appearance change to “Pressed” depending on current state in notebook

I have a three buttons next to each other that set the text justification to left, center or right. I would like the button to have Appearance->"Pressed" when ...
2
votes
1answer
72 views

Use Cancel Button in a DialogInput window to Abort Evaluation or Quit the kernel entirely

I have been searching the forum for an answer to this question and although people seem to have asked this exact same question, it is in the context of specific function in their ...
4
votes
2answers
114 views

TogglerBar Problem

Is it possible to save information from a toggler bar to a variable when a button is clicked? Example: I have a toggler bar with its buttons numbered, say 1–4. When I press on a the button showing ...
1
vote
0answers
123 views

Making graphic objects disappear interactively

I am trying to create a program where dots on a plane disappear when an object passes over them. I am using EventHandler to code the arrow keys for control of the ...
1
vote
2answers
381 views

Creating simple interactive GUI without Manipulate

I am developing a simple input/output dialog, where the input is a string typed in by the user and the output is both graphical and textual. I think some of the answers to this question may be found ...
3
votes
1answer
100 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
82 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
94 views

Problem controlling layout of Manipulate-generated GUI

For example: ...
3
votes
2answers
153 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
88 views
1
vote
2answers
82 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
129 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
57 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
118 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
232 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
144 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
637 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
607 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
151 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 ...
8
votes
1answer
151 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
131 views

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

I have the following ClockGauge: ...
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 ...
3
votes
0answers
60 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
91 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: ...