Skip to main content

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
0 votes
1 answer
47 views

How can I make a Button in base of PopupView[items, i, base] behave as a standalone button?

Consider the following code: ClearAll[x]; x = 0; Button["Click", (x += 1;)] Dynamic[x] Every time I click the button, the dynamic value of ...
1 vote
1 answer
49 views

Controlling Manipulate using a mouse-over wheel scroll

Can I get Manipulateto allow me, once the plot appears, to hover my mouse over the plot and scroll my mouse wheel to vary the parameter $a$? Currently I need to ...
2 votes
0 answers
32 views

CreateDialog and GraphicsArray

I think I have hit on a true bug in the Mathematica Front End: If I define plotFunc[] := Print[GraphicsGrid[{{Plot[x^2, {x, 0, 1}], Plot[x^3, {x, 0, 1}]}}]]; I can ...
6 votes
1 answer
280 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
406 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
144 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
90 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
156 views

Asymmetric Grids

Consider the following Grid ...
3 votes
0 answers
54 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
45 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
326 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
84 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
222 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
109 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
203 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
41 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
87 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
231 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
332 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
815 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
413 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
57 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
930 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
97 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
82 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
165 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
389 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
194 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
71 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
318 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
132 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
160 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
104 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
210 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
46 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
143 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
148 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
76 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
115 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 ...

1
2 3 4 5
13