Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [button]

Questions on using or implementing UI control elements that link a mouse click to a single action.

4
votes
1answer
92 views

How to pixel constrain Button Appearance given as images?

Using the images: ...
6
votes
1answer
122 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
0answers
30 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
2answers
37 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
1answer
58 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
0answers
46 views

Button action evaluation [duplicate]

An example of the problem I am encountering: ...
1
vote
1answer
32 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
1answer
302 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
2answers
78 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
1answer
47 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
2answers
112 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
1answer
33 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 ...
9
votes
4answers
3k views

How can I create a help button that looks more “professional”?

My goal, is to make the following button, ...
5
votes
1answer
72 views

Unexpected styling of a Button when used as PlotLabel

Bug introduced in 8 or earlier and persisting through 11.2.0 Reported to the support as [CASE:3984748] Consider the following plot with a Button placed as ...
2
votes
3answers
435 views

How to make Button just works one time

I have such code to slect prefer font ...
1
vote
2answers
94 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
1answer
61 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
1answer
43 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 ...
0
votes
0answers
41 views

Using Mma 9 is there a quicker way (using a keyboard combination or a button) to execute a Mma program than typing Alt+V and then O? [duplicate]

Another question asks whether there is a keyboard shortcut for evaluating a notebook. The answer is yes. The quickest way that someone came up with was pressing Alt+V and then O, but the question did ...
0
votes
3answers
84 views

How to hide “input” while using ButtonBar?

I used a ButtonBar. When I click a button (in Output) it unhide all my hidden code (Input). How to overcome this issue? UPD: requested example Input: ...
2
votes
0answers
90 views

Why doesn't Button work with loop? [duplicate]

It seems that I cannot use a loop in Dynamic. Quite ridiculous?? Here is my minimal example: ...
1
vote
0answers
56 views

Dataset inactive when shown from button action

Bug introduced in 11.1.1 (or earlier) and persisting through 11.3 CASE:3919858 This dataset is active: ...
3
votes
1answer
66 views

SystemOpen inside a button waits until the end for being evaluated?

I am writting with the hope of getting some help when using "SystemOpen". Here is a simple example: ...
5
votes
1answer
94 views

GUI button with AceFEM functions

I would like to have a GUI with a button that starts AceFEM analysis and then some results appear. I have taken one example from the documentation on boundary condition specification and I wrapped it ...
1
vote
1answer
39 views

Why are changes to dynamic value not delivered to all GUI elements as they happen?

The widget below is just a toy that I put together so that I could ask this question. ...
2
votes
1answer
67 views

How to have button's action repeat as long as the button remains pressed?

The widget below is just a toy that I put together so that I could ask this question. ...
2
votes
3answers
94 views

Switch styles for special words

I want to create a Cloze test in Mathematica. I want to have text in a text cell and leave some words blank (to be filled in by students). With a button I want be able to switch between styles for ...
0
votes
0answers
94 views

Changing an animation variable with manipulate and button

I need Manipulate to add buttons. And I think I need Dynamic somewhere. I tried searching in the stackexchange for anything similar because I feel that surely someone has also this in mind. Many of ...
2
votes
2answers
188 views

Toolbar Button or Permanent Palette Button for Evaluate

Wishing for a permanent button super accessible for Evaluate, either Notebook or Cell. Readily clickable by Mr. Mouse. (For Windows platform, by the way.) I note that LOTS of people have asked ...
4
votes
1answer
83 views

Making button appearance change to “Pressed” depending on current state in notebook

I have a three buttons next to each other that set the text justification to left, center or right. I would like the button to have Appearance->"Pressed" when ...
5
votes
2answers
344 views

Emulating an up/down button that temporarily changes blue when clicked

I'd like to create a button that works like the gif below. I'm not concerned with the content of the field changing. I just want to learn how to create a button that looks and works like the one in ...
1
vote
0answers
45 views

How do I activate the infobutton that links to the documentation page for package functions [duplicate]

When typing the name of a built-in function like Integrate, the button () appears next to that name in the autocomplete: But in my self-defined application,it doesn't works Also, the button is gray ...
3
votes
1answer
94 views

Initializate Manipulate

Hello I am a beginner in Mathematica and I have a question about initialization of manipulate. I have code like this and I want to ask you, how to modify that code if I want have default picture saved ...
0
votes
0answers
54 views

How to make sum of following numbers?

How to make simple sum of following numbers? ButtonBar[{"1" :> Print[1], "2" :> Print[2], "3" :> Print[3], "4" :> Print[4]}] If I press buttons, for ...
10
votes
2answers
137 views

Strange output when a log-log plot is displayed by means of a button

Bug introduced in 8 or earlier and persists through 11.0.0 I have encountered some strange behavior on the part of the front-end. $Version ...
25
votes
1answer
273 views

How do I add the infobutton in autocomplete that links to the documentation page for package functions?

When typing the name of a built-in function like Integrate, the button (ℹ︎) appears next to that name in the autocomplete: But I don't get that (ℹ︎) button for my ...
10
votes
1answer
158 views

Evaluation leak from Dynamic in Button's action

a = 1; Button["Print", a++] Button["Print", Dynamic[a++]] Button["Print", Dynamic[a++];] Button["Print", {Dynamic[a++]}] Dynamic @ a The second ...
3
votes
1answer
237 views

How insert hyperlink to file with relative path?

Into a text cell of my current (previously saved) notebook, I want to place a hyperlink to a particular file target.html in a particular subdirectory ...
8
votes
2answers
239 views

How to paste an equation to a graphics

I wonder why PasteButton["Plot", Plot[\[SelectionPlaceholder], {x, 0, 10}]] applied to x^2 --- highlighted --- doesn't work.
2
votes
0answers
113 views

Buttons in graphics [closed]

I've created a workflow using Drawing Tools. It consists of Images, lines, and in some places I have cut and pasted Button objects. These buttons work fine if you paste directly into the Graphic frame....
6
votes
2answers
283 views

How to horizontally center a button in manipulate?

I just need to center a button in the MWE code below. Currently, all I try doesn't work. I would like to horizontally center the button relative to the sliders over it, for aesthetical reasons only. ...
1
vote
1answer
114 views

Button to close cells

I want to have a button that closes cells with a specific tag. The following code does what I want: ...
3
votes
2answers
253 views

Table of Buttons [duplicate]

What's the correct way to form a table of buttons in which each action depends on the index in the table? E.g., I want to get {Button[1,f[1]],Button[2,f[2]]} ...
2
votes
2answers
131 views

Question about Slider and adding buttons

I would like to add some buttons next to a slider for higher accuracy movements. For instance I have this slider, which has 1-step, pretty easy to use. ...
1
vote
0answers
40 views

Manipulate panel does not print (or print to pdf) the same as it displays in a notebook [duplicate]

Whenever I print (or print to pdf) a manipulate panel it never looks like the manipulate panel I have in the notebook on my display. This is what the manipulate panel looks like on my display. ...
4
votes
2answers
436 views

In 10.3 System DialogInput execution error

I have upgraded to 10.3 from Mathematica 9.0. However, in 9.0 things that ran well will not run in 10.3. A typical example is: ...
-1
votes
1answer
54 views

Display that replaces previous values [closed]

Is it possible to make some function like Print but one that replaces its previous result with a new value instead of producing a new one? For example, let's use ...
2
votes
1answer
119 views

Function under Button, need help [closed]

I would like to put this function under button so I can just press button to evaluate instead of having to shift+enter ...
3
votes
0answers
70 views

Changing the format of ActionMenu

I am attempting to make my actions menus "prettier". :) Using the code below... ...
1
vote
1answer
88 views

Click individual selections from a button

I have a graphic where each Arrow, Rectangle, and Text is a ...