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 ...
Shredderroy's user avatar
  • 5,251
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 ...
apg's user avatar
  • 2,165
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 ...
Stefan Gillessen's user avatar
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 ...
imida k's user avatar
  • 4,315
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 ...
David G. Stork's user avatar
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 ...
atapaka's user avatar
  • 3,986
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, ...
Alan's user avatar
  • 13.8k
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 ...
David Eph's user avatar
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 ...
Sean's user avatar
  • 645
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 ...
Daniel's user avatar
  • 115
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 ...
Jules Manson's user avatar
  • 2,467
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 ...
robert prince's user avatar
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 ...
BenKolt's user avatar
  • 101
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 ...
Jules Manson's user avatar
  • 2,467
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: ...
QuantumDot's user avatar
  • 19.7k
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 ...
Jules Manson's user avatar
  • 2,467
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 ...
Alexey Popkov's user avatar
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 ...
userrandrand's user avatar
  • 5,937
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: ...
martin's user avatar
  • 8,748
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....
Jules Manson's user avatar
  • 2,467
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
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 ...
imida k's user avatar
  • 4,315
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 ...
Jules Manson's user avatar
  • 2,467
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 ...
imida k's user avatar
  • 4,315
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
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 ...
Jan's user avatar
  • 1
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 ...
B flat's user avatar
  • 5,565
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, ...
B flat's user avatar
  • 5,565
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: ...
Peter Müller's user avatar
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 ...
Trev's user avatar
  • 763
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 ...
André's user avatar
  • 197
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 ...
sam wolfe's user avatar
  • 4,873
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 ...
sam wolfe's user avatar
  • 4,873
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,873
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 ...
sam wolfe's user avatar
  • 4,873
2 votes
0 answers
101 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,873
4 votes
1 answer
156 views

Asymmetric Grids

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

Dynamic updating problem

Consider the code ...
sam wolfe's user avatar
  • 4,873
1 vote
0 answers
62 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,873
3 votes
0 answers
92 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,873
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 ...
Jules Manson's user avatar
  • 2,467
5 votes
3 answers
239 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,873
1 vote
1 answer
180 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,099
2 votes
1 answer
133 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,873
1 vote
0 answers
88 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
  • 555
0 votes
1 answer
34 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
76 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.8k
0 votes
0 answers
37 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
121 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
  • 469

1
2 3 4 5
13