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
50 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 ...
atapaka's user avatar
  • 3,703
1 vote
2 answers
125 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, ...
Alan's user avatar
  • 13.5k
1 vote
1 answer
40 views

Setting FrontEnd`$ControlActive in EventHandler

Is it possible to emulate the behaviour of ControlActive[] for an ordinary Control[] when implemented by an ...
David Eph's user avatar
3 votes
0 answers
52 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 ...
Sean's user avatar
  • 615
0 votes
1 answer
63 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 ...
Daniel's user avatar
  • 71
1 vote
1 answer
192 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 ...
Jules Manson's user avatar
  • 2,397
0 votes
0 answers
52 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 ...
robert prince's user avatar
4 votes
1 answer
100 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 ...
BenKolt's user avatar
  • 101
0 votes
0 answers
16 views

Message created when calling GraphicsArray from inside a CreateDialog[]-Window

When writing a little gui for convenient access to some functions of a package, I encountered the following problem: Some button calls a function of the package, which creates some graphics. Even ...
Stefan Gillessen's user avatar
0 votes
0 answers
31 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 ...
Jules Manson's user avatar
  • 2,397
7 votes
1 answer
81 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: ...
QuantumDot's user avatar
  • 19.5k
0 votes
0 answers
223 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 ...
Jules Manson's user avatar
  • 2,397
13 votes
2 answers
307 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 ...
Alexey Popkov's user avatar
5 votes
3 answers
178 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 ...
userrandrand's user avatar
  • 5,637
9 votes
1 answer
397 views

Using graphics primitives as buttons

I am trying to use graphics primitives as buttons, but can't do it unless I rasterise first: ...
martin's user avatar
  • 8,102
0 votes
1 answer
53 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....
Jules Manson's user avatar
  • 2,397
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: ...
Alexey Popkov's user avatar
0 votes
1 answer
72 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 ...
imida k's user avatar
  • 4,037
0 votes
1 answer
74 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 ...
Jules Manson's user avatar
  • 2,397
7 votes
4 answers
371 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 ...
imida k's user avatar
  • 4,037
2 votes
0 answers
29 views

How prevent nested OpenerView collapsing back to initial closed state when innermost contents change

Very simple example: ...
Webel IT Australia - upvoter's user avatar
0 votes
0 answers
54 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 ...
Jan's user avatar
  • 1
1 vote
0 answers
37 views

Displaying ActionMenu Choices Programmatically

Executing the following code creates an ActionMenu: ActionMenu["Menu", {"temp1" :> Print[1], "temp2" :> Print[2]}] If you move ...
B flat's user avatar
  • 5,377
8 votes
1 answer
149 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, ...
B flat's user avatar
  • 5,377
1 vote
1 answer
90 views

inputting a binary matrix via buttons

I want to input a binary matrix via buttons as in the following code: ...
Peter Müller's user avatar
1 vote
0 answers
43 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 ...
Trev's user avatar
  • 753
0 votes
0 answers
41 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 ...
André's user avatar
  • 197
2 votes
3 answers
138 views

Exporting specific frame of ListAnimate

Imagine I have a certain list of Graphics-type objects that I then incorporate into ListAnimate ...
sam wolfe's user avatar
  • 4,187
1 vote
0 answers
126 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 ...
sam wolfe's user avatar
  • 4,187
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 ...
sam wolfe's user avatar
  • 4,187
1 vote
1 answer
84 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 ...
sam wolfe's user avatar
  • 4,187
2 votes
0 answers
99 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 ...
sam wolfe's user avatar
  • 4,187
4 votes
1 answer
153 views

Asymmetric Grids

Consider the following Grid ...
sam wolfe's user avatar
  • 4,187
1 vote
1 answer
101 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 ...
sam wolfe's user avatar
  • 4,187
1 vote
1 answer
79 views

Dynamic updating problem

Consider the code ...
sam wolfe's user avatar
  • 4,187
1 vote
0 answers
55 views

Grid's automatic resizing

Imagine I have a dynamic opener that changes the number of rows. For example, ...
sam wolfe's user avatar
  • 4,187
3 votes
0 answers
91 views

Button changes in 12.3 [closed]

In the new 12.3 version I noticed a change in how buttons react to the Background option. For instance, take ...
sam wolfe's user avatar
  • 4,187
2 votes
1 answer
145 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 ...
Jules Manson's user avatar
  • 2,397
5 votes
3 answers
219 views

Manipulate delimiter between control and content

Is it possible to stylize Manipulate so that there is a line separating the control and the content? The code ...
sam wolfe's user avatar
  • 4,187
1 vote
1 answer
161 views

Creating a Button to evaluate initialization cells

I am trying to create a setup where I have a number of InputField, SetterBar, and Checkbox ...
Kai's user avatar
  • 2,079
2 votes
1 answer
106 views

External Dynamic Control with Manipulate

I want to have dynamic controls that depend on other controls. For example, the code ...
sam wolfe's user avatar
  • 4,187
1 vote
0 answers
81 views

How to create a bootstrap style InputField?

I am trying to create a bootstrap style InputField in Mathematica. Here is what I've done so far: ...
Sâu's user avatar
  • 525
0 votes
1 answer
33 views

symbols in a function to "take on" the values of controls with the same names in Manipulate

(** I want the symbols a1... in f1... to "take on" the values of the controls with the same names in Manipulate[Plot[f1[3,"a"],{x,1,3}],{a1,0,1},{a2,0,1},{a3,0,1}]. Here's what I'...
mk_newbie's user avatar
1 vote
1 answer
74 views

Can I plot *after* setting slider values?

I have some fundamental misunderstanding of the use of Mma's GUI elements, and I would appreciate some guidance. I would like to be able to set up a calculation based on slider values and then press ...
Alan's user avatar
  • 13.5k
0 votes
0 answers
35 views

Using button to display a data table

Here is the code I have tried: Button["Click to show table", Grid[data]] Is there a way to do this, so the user can click a button to show the data table?...
user76744's user avatar
3 votes
1 answer
115 views

Get symbol at mouse position

How can I get the symbol which is under the mouse pointer at any time? I know that I can get the mouse position with MousePosition[] and dynamically with ...
Qbyte's user avatar
  • 459
3 votes
2 answers
98 views

How to solve the problem of EventHandler losing focus?

...
xingzheshengcun's user avatar
2 votes
1 answer
70 views

How do I fully specify settings for an image to be used as a GaugeMarker?

I have designed a ClockGauge and wish to use three different images for the hour, minute and second hands.The images are not rectangular and are not symmetrical. The code used is below: ...
John Baratta's user avatar
3 votes
1 answer
123 views

Panel, Pane, and Framed Alignment - Clipped Images, Negative Margins, ContentPadding

I'm trying to tightly wrap some expressions in containers (could be Panel, Pane, maybe Framed...
Sean's user avatar
  • 615
2 votes
1 answer
128 views

Making a GUI similar to Documentation Center

This is an offshoot of how to create a menu as the Documentation Center?... My aim is to build a menu that functions kind of like the documentation center...a grid of rectangles, each with a dropdown ...
kits's user avatar
  • 270

1
2 3 4 5
13