Questions tagged [gui-construction]
GUI-construction involves everything that is used to programmatically construct a custom graphical user interface under Mathematica.
620
questions
6
votes
1
answer
271
views
Hyperlinks that open smoothly in the same window
Suppose that I have test1.nb and test2.nb in my local disk.
For simplicity, suppose that ...
5
votes
1
answer
304
views
Rotation Slider Control
Mathematica seems to support no "rotation slider" Control which might be used, for instance, in setting an angular direction ($0 \leq \theta \leq 2 \pi$) on a plane. I couldn't find one in ...
4
votes
2
answers
1k
views
How to label my training images?
I'm switching over Matlab, but I have a problem. Matlab has a GUI tool called the "Training Image Labeler" (shown below) that I use all the time to label my training data for my computer vision ...
1
vote
2
answers
140
views
Multiparameter GUI with button-driven update
I would like to be able to evaluate a function based on multiple Slider values by pushing a Button that creates the function, ...
0
votes
1
answer
69
views
Using Manipulate for initial guess to nonlinear fitt, feed the result back to Manipulate (and repeat) for a general model with indexed parameters
I have been trying to put toghether a visual method to help fit experimental data with peaks. I have stumbled upon this answer which is very similar to where I got. But it is not sufficiently general ...
4
votes
1
answer
155
views
Asymmetric Grids
Consider the following Grid
...
3
votes
0
answers
53
views
Grid Problem: Combining Item[] with SpanFromLeft/Above
I'm trying to lay-out a Grid with various entry-specific Frame settings. In my case, using ...
1
vote
1
answer
42
views
Setting FrontEnd`$ControlActive in EventHandler
Is it possible to emulate the behaviour of ControlActive[] for an ordinary
Control[] when implemented by an ...
7
votes
2
answers
316
views
How do I make a big update(ⓤ) button inside Manipulate?
I often make CDF documents using Manipulate.
However, the Update(ⓤ) button created with ContinousAction-> None is too small.
Is there a way to make this button(ⓤ) bigger?
0
votes
1
answer
78
views
Array of checkboxes in manipulate with labels
I'm attempting to create a grid of models by datasets checkboxes with labels on the the top and bottom(with an empty in the top ...
1
vote
1
answer
220
views
How to check that a user-input of a list of CellObject-s actually belong to the EvaluationNotebook?
Suppose a user inputs a list of CellObject-s to operate on. How might one check these objects to determine if they actually belong to the ...
0
votes
0
answers
53
views
Don't understand actionmenu
This works fine to get domain from a dropdown, but I wrote it years ago, and although I thought I understood it, I clearly don't because I can't get rid of pure functions to make it work at all. I ...
4
votes
1
answer
108
views
How to Build an Interaction GUI that Interrupts Calculation?
I would like to construct a GUI using just the Mathematica language that allows me to start and stop a calculation interactively with the press of buttons. I have set up the following to show what I ...
5
votes
3
answers
199
views
How to incorporate ResourceFunctions to autocomplete
Edit: As mentioned in the comments below, typing just ResourceFunction["Mo"] results in a list of ResourceFunctions that have a name that starts with Mo. This is good enough for me although ...
1
vote
0
answers
40
views
Displaying ActionMenu Choices Programmatically
Executing the following code creates an ActionMenu:
ActionMenu["Menu", {"temp1" :> Print[1], "temp2" :> Print[2]}]
If you move ...
0
votes
0
answers
32
views
How might one create a Button that wraps everything hilghlighted with mouse with double quotes similar to Comment/Uncomment?
I find typing doublequotes around characters to create strings a bit annoying because it always slows me down. The doublequotation marks lie right at my achilles heel on keyboards. It's too close to ...
7
votes
1
answer
86
views
How do I include additional kinds of boxes that are Tab-selectable
Observe that "PlaceHolder" and InputFieldBox are known by the FE to respond to pressing the Tab key:
...
0
votes
0
answers
228
views
The new Default Toolbar in 13.1 may have a bug in which a label appears over it. Can label be removed?
This post does not ask how to stop new toolbar from appearing but how to remove the described label above it.
I finally installed 13.1 and to my surprise Wolfram added a new ...
30
votes
2
answers
1k
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 ...
13
votes
2
answers
330
views
How is the zoom tooltip in the "Coordinates Tool" implemented?
I notice that the built-in "Coordinates Tool" has a very efficient zoom tooltip displaying an enlarged portion of the image along with coordinates and row/column indices:
How to get the ...
3
votes
1
answer
66
views
How to set minimal allowed size for a graphical element?
Starting from version 10.3 there is a documented way to specify a maximum allowed size for a graphical element via UpTo:
...
15
votes
2
answers
809
views
What is FrontEnd`AttachCell?
Perhaps it's not accessible from the front end, but what is this so-called attached cell?
...
9
votes
1
answer
408
views
Using graphics primitives as buttons
I am trying to use graphics primitives as buttons, but can't do it unless I rasterise first:
...
0
votes
1
answer
56
views
Dynamic 2-state toggle button difficulty returning to original state
I had this working fine this morning, but I proceeded to refactor, and somehow I cannot get it to toggle like before. It does initialize, and it does go from state-1 to state-2 but not back to state-1....
13
votes
3
answers
926
views
How to anchor a Pane's scroll position to the bottom?
Suppose I have a Pane containing some dynamic text, for example that is being updated by a logging function.
...
0
votes
1
answer
90
views
InputField - change text alignment to center
Is it possible to align text in InputField Right/Centered?
(Seems Left is default)
Seems there is no alignment option for InputField.
What I want is center - More specifically, Real-time centered : I ...
0
votes
1
answer
81
views
A very simple Dynamic Button label is not updating when state changes
Just when I thought I had Dynamic tackled for most non-complex controls, this comes along and makes a mockery of me. So what the ...
2
votes
1
answer
159
views
How to make a better self-closing toolbar button that always works?
My DockedCellstoolbar has a self-closing button that sometimes decides to permanently stop working on that particular notebook. closing and reopening file always ...
3
votes
1
answer
225
views
How to place a FormFunction in DialogInput?
FormFunctions work well in a notebook cell.
...
7
votes
4
answers
381
views
Fit text within a button
Column[Table[
Button["ABCDEFGHIJKLMNOPQRS", Null,
ImageSize -> i], {i, {50, 100, 150, 200}}]]
will output
As in the above example, Mathematica ...
2
votes
0
answers
29
views
How prevent nested OpenerView collapsing back to initial closed state when innermost contents change
Very simple example:
...
4
votes
1
answer
190
views
Interactive Graph Construction
I'm interested in constructing an interactive GUI graph generator, where I can add and delete vertices and edges.
I'm aware of this question, and this is but a quick follow-up to this answer. I would ...
38
votes
5
answers
4k
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 ...
0
votes
0
answers
66
views
How can I change fractions as tick labels with real numbers?
When using HorizontalGauge or VerticalGauge the scale divisions are frequently labels with fractions (1/5, 2/5) etc., which looks terrible and is hard to read. I have not found a way to force labels ...
1
vote
2
answers
311
views
Import files from a directory choose via Manipulate
I thought I write a super-simple program to import all (Excel)files from a directory a user can choose>
...
1
vote
2
answers
131
views
TogglerBar linked to Buttons that override input list
This question is about extending the solution provided here. How do I allow the user to change x outside the TogglerGrid function so that the TogglerBar shows the new values of x? I've set it up ...
8
votes
1
answer
156
views
Dynamically Center a Control in Manipulate
I am attempting to dynamically horizontally center a button above the plot window in a manipulate. For example,
...
1
vote
1
answer
103
views
inputting a binary matrix via buttons
I want to input a binary matrix via buttons as in the following code:
...
13
votes
0
answers
284
views
HorizontalGauge causes problem with ScalingFunctions -> "Log"
Bug introduced in 9.0.0 and persisting through 12.2.0 or later
HorizontalGauge is new in 9.0.0
I am trying to use ...
1
vote
0
answers
46
views
Sortable Grid-like control for large data sets?
I've been using a roll-your-own function for a while that's a wrapper around Grid which adds a couple things I always use, like headers, dynamic sorting, filtering, and clipping (only showing the ...
4
votes
3
answers
206
views
Plot with different line style when clicked
I have a plots with many lines and would like to be able to highlight lines when clicked (or on mouseover). When the data plotted is small this works well
...
0
votes
1
answer
63
views
Setting automatic dividers when merging groups
Imagine I have my code split into multiple sections, like so
Suppose I now select all cells and merge them, getting
Is it possible to automatic set a divider between the different code sections? I'm ...
0
votes
0
answers
44
views
A standalone notebook that just shows a Manipulate and hides all other code?
I have a complex notebook with one cell that contains a bunch of initial definitions, several modules, and finally a Manipulate object. For a simple example take
...
2
votes
3
answers
141
views
Exporting specific frame of ListAnimate
Imagine I have a certain list of Graphics-type objects that I then incorporate into ListAnimate
...
1
vote
0
answers
137
views
How to make this interface?
I was recently watching this video on the role of the Wolfram language on data science and engineering, and upon discussion of data manipulation, the following CDF was briefly shown (around 0:50 in ...
2
votes
1
answer
75
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"]}]
1
vote
1
answer
104
views
Deleting all outputs on Notebook close
Is is possible to set up a Mathematica notebook so that all outputs are automatically deleted when the notebook is closed? I was trying to look for some function like ...
15
votes
1
answer
606
views
Animating a Potential Function (eigenfunctions of Laplace's equation)
I have written the following DynamicModule. The idea is that you can change the boundary, calculate the eigenfunctions and then animate them. Here is the code:
<...
2
votes
0
answers
100
views
Making Static Buttons
Is it possible to get a button that remains still when clicked? That is, it does not show the temporary pressed frames
This also happens when I set ...
1
vote
1
answer
106
views
Changing Slider Style [duplicate]
Is there any option to customize the Slider tracker to an image or a Graphics object? What about simply changing its colour? For ...