Questions tagged [button]
Questions on using or implementing UI control elements that link a mouse click to a single action.
155
questions
4
votes
1
answer
63
views
Making Tooltips Work with Buttons in 3D Plots
I am trying to get buttons to work simultaneously with tooltips in 3D plots. Button has a Tooltip option, but it doesn't seem to ...
1
vote
1
answer
38
views
Buttons too small for content
When I try to display buttons with long content in a multicolumn the text sometimes gets cut off. Like this:
...
6
votes
2
answers
838
views
Making a Mathematica version of Wordle interactive
Just as a diversion, I'd like to create an interactive Mathematica version of Wordle. As a sketch I have the following:
...
4
votes
4
answers
115
views
How to dynamically change background color of a buttonBar wrt selected in Mathematica
I have a ButtonBar like this and on click I want to change the color of the pressed button dynamically.
Which is the properly way to do this in Mathematica ?
My code:
...
1
vote
1
answer
81
views
inputting a binary matrix via buttons
I want to input a binary matrix via buttons as in the following code:
...
3
votes
1
answer
59
views
Please help with dynamic autosave button that only halfway works?
Ive been working on this from morning to midnight (primarily studying the docs that never seem to have useful examples) only to to make very little ground. I am trying to code a dynamic button that ...
8
votes
2
answers
238
views
How to stop this computation?
I want to implement start-stop dynamics within a Manipulate environment so that, when I click a "Start" button, the simulation starts, and when I click ...
2
votes
0
answers
86
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 ...
0
votes
0
answers
44
views
How to show/hide radio buttons by clicking a button?
I'm implementing a neural network for school and I have a function where the user can interact with the variables.
The thing is, I have a lot of variables and I want partially hide show them using ...
3
votes
0
answers
88
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
...
0
votes
0
answers
52
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 ...
0
votes
1
answer
86
views
Why does ButtonBar ignore Background option and is it possible to color the actual face of the buttons in a ButtonBar?
Notice how I have Background->color set in each BUttonBarbut it is completely ignored. How do I fix this?
Edit:
(1) Bob ...
2
votes
2
answers
100
views
Generalized Cassini oval and Manipulate
I've created a visualization of Generalized Cassini oval using Manipulate with two options: random and regular. The former generates pseudorandom points in a plane, whereas the latter generates points ...
0
votes
0
answers
31
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?...
1
vote
0
answers
36
views
How can a make a button that hides text,so text remains hidden until a person presses the button?
so this is the type of thing I'm trying to do:
When I click on this button,it displays a hidden text:
2
votes
1
answer
60
views
Words in a word cloud triggering actions?
I'm wondering if it's possible to set actions to the words in a WordCloud. I'd like to press a word and have it printed. I noticed here that Button[] can be used like ToolTip[] so changed the example ...
4
votes
2
answers
180
views
How to style the frame of the a button?
For certain Appearance options of Button you can control the Background, but how does one ...
2
votes
1
answer
83
views
Add a button to show properties inside a graph
I would like to draw the graph of $f(x)=x^{3}-x+2$ next to two buttons named: "Property1" and "Property2" in which when I press "Property1" it shows "f'(1) is positive", while for "Property2" it shows ...
3
votes
2
answers
125
views
How to create a table with buttons?
I'd like to make a simple dice roller to be used in board games. A simple way to simulate a roll is:
d[n_] := RandomChoice[Range[n]]
Now, calling d[6] will roll ...
15
votes
3
answers
628
views
VoronoiMesh as a TogglerBar
Is it possible to use a VoronoiMesh to define a TogglerBar or SetterBar type ...
5
votes
1
answer
211
views
Multiple buttons in a Manipulate: how do I get a good layout?
Consider the following code
...
7
votes
2
answers
210
views
How to change colour of TogglerBar
Consider the following code
...
0
votes
1
answer
49
views
How to make Button print the last updated point?
I am trying to create a graphics that outputs the population of a city on the graphics that is clicked. The problem is that it is not updating the last point that is clicked. Please help.
...
1
vote
1
answer
71
views
how can I create a ButtonBar for following specific actions
I have two sets of parameters p1[i] and p2[i], (i=ag, cs, wh) for which I want to create two separate button bars. I have the following conditions:
Given two ...
2
votes
1
answer
83
views
Show all dynamic changes on button press
This is probably a silly question, but I've spent all day trying to figure it out and I can't. Below is the code.
...
0
votes
1
answer
103
views
Specify position of button
This might go against the spirit of Mathematica, but I would like to create the button, but I do not want that button to be grouped with the code that generated it. In fact, the code that generates it ...
0
votes
1
answer
90
views
Is it possible to overwrite a button output?
For example, if I have this basic button
Button["Sum", Print[2 + 2]]
is it possible to overwrite the same output without creating a new one and have a single 4 ...
1
vote
1
answer
96
views
How do I make a Module return values upon a button press?
I have put together a function of the form:
...
1
vote
1
answer
37
views
Notebook Apply with SelectionPlaceholder leaves entire pasted structure selected
Consider the following button:
...
3
votes
2
answers
335
views
How to create a button that adds InputFields when clicked?
I would like to create a button 'ADD' that creates a new InputField each time the user clicks it.
I have tried something like this so far:
...
0
votes
1
answer
60
views
AppendTo doesn't update when interacting with PopupMenu
I'm trying to ListPlot a list calculated by the Button called "Plot" with PopupMenu linked ...
0
votes
2
answers
161
views
Launch a code using the button function
How can I run the code in a cell using the "button" function. I have a big code and instead of using "Shift + Enter", I want a button to do it.
Here is the code:
...
4
votes
1
answer
124
views
How to pixel constrain Button Appearance given as images?
Using the images:
...
6
votes
1
answer
179
views
Grid of buttons over image with inset?
I'm in-setting a grid of buttons over an image, and I think it's probably a very simple thing that I'm missing. In the example below Scaled doesn't work to stretch ...
0
votes
0
answers
31
views
Dynamic If for a button to choose the package [duplicate]
I have a calculation where I give the user an advance option to choose a variable, PV. If the user chooses not to use the PV, ...
6
votes
3
answers
87
views
How to create a button that deletes a character?
I am creating a template that can be used on a touch-screen to input data into an InputField. Following the example from the Basic Math Assistant palette, the ...
0
votes
1
answer
148
views
Multiple buttons on an Image [closed]
I am trying to create an interactive map that when you click a room, you get send to a more detail of it. I am struggling to put multiple buttons on an image as well as have them line up with the ...
0
votes
0
answers
82
views
Button action evaluation [duplicate]
An example of the problem I am encountering:
...
1
vote
1
answer
93
views
Button doesn't work with Append [duplicate]
I have a extremely simple question on Button. I tried to append values to associations. The Append works good with given value outside button, but once it is inside Button, it doesn't append the value ...
5
votes
1
answer
793
views
How can I create a "Run all code" button in a notebook?
How can I create the "Run all code" button (at the top right corner) in Mathematica notebook?
The current method I have is to save the .nb file into .wls (i.e. Wolfram Language Script), and then open ...
1
vote
2
answers
111
views
Button with two expressions to evaluate depending on state
I miss a Button-like interface element which would behave like Checkbox but evaluate expressions instead of changing value of a <...
3
votes
1
answer
63
views
How to add a Button on a slideshow that on click get me to the specific slides on the slideshow
How can I add buttons on a slide that on click takes me to specific slides on the slideshow?
4
votes
2
answers
137
views
Generate multiple buttons for distinct list elements
I have a lot of data sets. I want to plot all of them and export some of them to file (or print them as in example below) by clicking buttons generated next to plots.
...
1
vote
1
answer
39
views
holding expression unevaluated in ActionMenu
for list li1 = {"A", "B", "C"}; I would like to generate ActionMenu but that will be generated on the fly, and on selection will ...
10
votes
4
answers
3k
views
How can I create a help button that looks more "professional"?
My goal, is to make the following button,
...
5
votes
1
answer
89
views
Unexpected styling of a Button when used as PlotLabel
Bug introduced in 8 or earlier and fixed in 11.3
Reported to the support as [CASE:3984748]
Consider the following plot with a Button placed as ...
2
votes
3
answers
458
views
How to make Button just works one time
I have such code to slect prefer font
...
1
vote
2
answers
113
views
Next and Previous buttons are not working properly
I really need some professional help here! :)
I have 2 buttons. They are working, but I am using a list and whenever there is a duplication in the list (same word) the button does not work properly (...
0
votes
1
answer
81
views
Creating a button that can store a number
I would like to create a button which has the action of storing a numerical input. Is this possible?
For example, a button which I click, then enter "5", produces the result the the number 5 gets ...
1
vote
1
answer
50
views
Create a set of buttons to change background color of next cell
I came across the following snippet (sorry can't find original location to give credit). I would like pressing any of the generated buttons to automatically go to the next cell and color it the ...