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
1 answer
81 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 ...
  • 101
0 votes
0 answers
9 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 ...
0 votes
0 answers
30 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 ...
  • 2,195
7 votes
1 answer
72 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: ...
  • 19.1k
0 votes
0 answers
192 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 ...
  • 2,195
13 votes
2 answers
236 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 ...
5 votes
3 answers
135 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 ...
  • 3,175
9 votes
1 answer
367 views

Using graphics primitives as buttons

I am trying to use graphics primitives as buttons, but can't do it unless I rasterise first: ...
  • 8,035
0 votes
1 answer
47 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....
  • 2,195
3 votes
1 answer
61 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: ...
0 votes
1 answer
45 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 ...
  • 3,317
0 votes
1 answer
68 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,195
7 votes
4 answers
355 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 ...
  • 3,317
2 votes
0 answers
26 views

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

Very simple example: ...
0 votes
0 answers
36 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
1 vote
0 answers
34 views

Displaying ActionMenu Choices Programmatically

Executing the following code creates an ActionMenu: ActionMenu["Menu", {"temp1" :> Print[1], "temp2" :> Print[2]}] If you move ...
  • 4,867
0 votes
0 answers
61 views

ActionMenu and FormFunction in CreatePalette

While trying to answer this question on the Wolfram Community site I ran into the following issue. This works ...
8 votes
1 answer
130 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, ...
  • 4,867
0 votes
0 answers
36 views

Pokemon ELO rating with wolframscript

I would like to implement a Pokemon ELO system that my friends that don't have Mathematica installed could use as well via Wolframscript. The application would work as follows: You run a script ./...
  • 1,276
1 vote
1 answer
84 views

inputting a binary matrix via buttons

I want to input a binary matrix via buttons as in the following code: ...
1 vote
0 answers
41 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 ...
  • 626
0 votes
0 answers
38 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 ...
  • 197
2 votes
3 answers
131 views

Exporting specific frame of ListAnimate

Imagine I have a certain list of Graphics-type objects that I then incorporate into ListAnimate ...
  • 4,220
1 vote
0 answers
107 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 ...
  • 4,220
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 ...
  • 4,220
1 vote
1 answer
65 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 ...
  • 4,220
2 votes
0 answers
91 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 ...
  • 4,220
3 votes
1 answer
125 views

Asymmetric Grids

Consider the following Grid ...
  • 4,220
1 vote
1 answer
92 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 ...
  • 4,220
1 vote
1 answer
74 views

Dynamic updating problem

Consider the code ...
  • 4,220
1 vote
0 answers
46 views

Grid's automatic resizing

Imagine I have a dynamic opener that changes the number of rows. For example, ...
  • 4,220
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 ...
  • 4,220
2 votes
1 answer
127 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 ...
  • 2,195
5 votes
3 answers
178 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 ...
  • 4,220
1 vote
1 answer
116 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 ...
  • 1,967
2 votes
1 answer
90 views

External Dynamic Control with Manipulate

I want to have dynamic controls that depend on other controls. For example, the code ...
  • 4,220
1 vote
0 answers
69 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: ...
  • 493
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'...
1 vote
1 answer
69 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 ...
  • 12.8k
0 votes
0 answers
32 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?...
3 votes
1 answer
112 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 ...
  • 449
3 votes
2 answers
89 views

How to solve the problem of EventHandler losing focus?

...
2 votes
1 answer
69 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: ...
3 votes
1 answer
99 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...
  • 565
2 votes
1 answer
119 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 ...
  • 270
0 votes
0 answers
43 views

Saving code as a blackbox for wolfram player

I am trying to save my program as a blackbox so those who I am deploying it to are able to use it, but there is no reason for them to have the huge chunk of code beforehand to have to scroll through. ...
  • 69
2 votes
1 answer
68 views

How to use controls for creating static variables

I try to create a static variable initialized by some control. Let's create PopupMenu control ...
4 votes
1 answer
76 views

Invert Selection checkbox

I want to use a checkbox to invert the current checkboxbar selection, the code now basically works, but I hope that when the checkboxbar is all selected or not, the status of the first checkbox will ...
  • 6,675
1 vote
2 answers
115 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 ...
  • 91
11 votes
1 answer
379 views

Is there a way to disable the "Formatting Notebook Contents" panel?

Mathematica loves telling the user that it is "Formatting Notebook Contents" during DataModeler model searches. The problem is that, even though Mathematica is in the background, that panel ...

1
2 3 4 5
13