The tag has no wiki summary.

learn more… | top users | synonyms

20
votes
4answers
438 views

How to Initiate a queued evaluation from a Dynamic GUI without using a Button

I have a Dynamic-based GUI, and one part of it will kick off a calculation that could take longer than the default 5-second dynamic timeout. I know that ...
17
votes
5answers
1k views

How can I create a rectangular graphic with curved edges?

I want to make some button shaped graphics that would essentially be a rectangular shape with curved edges. In the example below I have used Polygon rather than ...
8
votes
2answers
408 views

How do I change the pressed button appearance?

On my system when a default button is pressed it turns light blue. This appearance can be changed using this code from the documentation: Use a second element to get the appearance of a pressed ...
7
votes
4answers
232 views

Button's command is not evaluated in iteration

I wish I didn't feel like a newbie after several months, but... If I enter the following: Table[ Button[ "Number: " <> ToString @ i, Print @ i], {i, 1, 5}] ...
6
votes
2answers
225 views

How to make each node of a graph a button?

A newbie question this one - MMA help seems to suggest it would be possible to place a button on ( or have a button be ) each node of graph, labelled with the name of said node. I have no idea where ...
6
votes
2answers
97 views

Showing “updating…” message while Manipulate is re-evaluating

Is it possible to show a fixed text such as "updating..." instead of the last result shown, when Manipulate is re-evaluating an expression (in a slow evaluation ...
5
votes
3answers
315 views

Inserting button in image

Can I insert a button in an image at specified location? I have tried but it shows Button is not a graphic function.
5
votes
3answers
245 views

Self-referential list or table of buttons

How could one create a table or list of buttons, such that clicking on a button removes the button itself from the list?
5
votes
3answers
341 views

How to make a control array of buttons or togglers?

An array of buttons From time to time I wish I had a control array of the sort native to Visual Basic. A control array of buttons would be a table of buttons in which each button "knows" its ...
5
votes
1answer
290 views

Evaluation order control

This question is related to Evaluation order of Button[]'s action Concusion was, Button[]'s actions are evaluated in preemptive link so "the code that needs ...
5
votes
1answer
84 views

In Graphics, a button without action will not work?

A minimal example: Graphics@Button[Disk[]] will yield error message Button is not a Graphics primitive or directive. But if you drop ...
4
votes
3answers
206 views

Is it possible to make the Button execute two or more actions?

According to the help: Button[label,action] Is it possible to make the button execute two actions?
4
votes
3answers
147 views

Using Mouseover to change the appearance of a button without writing the button specification twice

When I code in Mathematica, I often find myself having to repeat large chunks of code for a function to work. The latest example of this is a color changing button that prints when clicked, code shown ...
4
votes
2answers
88 views

Write GUI to select spheres in a grid

I'd like to generate a code that: 1) starts with a grid of circles (in general, it won't be a square grid) 2) allows the user to choose some of those circles 3) allows the user to choose the type of ...
4
votes
1answer
252 views

Evaluation inside Button stops after some seconds

I would like to trigger a long calculation inside a dynamic module with a Button. It seems that the evaluation stops without an error-message after some seconds. I made a test outside the a dynamic ...
4
votes
3answers
338 views

How to change the color of a button while it is pressed

I want to change the color of a button while it is pressed, pause for a short time and then change the color back to the original color. I can't seem to figure out how to do this (tried various forms ...
4
votes
2answers
198 views

Click on a curve to start Manipulating another function

I'm able to plot two lists with a tooltip on the curves to display the name of the curve: ...
4
votes
1answer
207 views

Button doesn't evaluate variable containing Module

I have a huge set of code to accomplish a data transformation. I have saved this set of code as eg: ...
4
votes
1answer
472 views

Emulating a button push or a mouse click with Mathematica code

I need to perform a long action with a button. I tried setting the DynamicEvaluationTimeout, but it seems it doesn't work for me. So I want to try using several ...
4
votes
1answer
340 views

How to perform DialogInput operation within Button

Can someone clarify how to perform a DialogInput operation within a Button? I wrote some code for that but it's not working. ...
4
votes
1answer
73 views

Getting the Box of a Button

I have a useful snippet of code that I use for anything in my Notebook that takes a while to execute and doesn't need to be executed for subsequent cells: ...
3
votes
1answer
176 views

Evaluation order of Button[]'s action

it looks like it should be well known issue but I haven't found answer anywhere. Please tell me why the result (after clicking) of this: ...
3
votes
3answers
297 views

Can Button[] generate output without using Print[]?

Button[] beguiles me. A simple example follows: ...
3
votes
1answer
148 views

Dynamic inside Button

This bit of code runs a little animation of a stochastic process: ...
3
votes
2answers
180 views

how to use button in place of checkbox

I am novice to Mathematica and want to ask how can I use Button in place of Checkboxes. I have used 4 ...
3
votes
1answer
151 views

Dynamic generation of Buttons

The Project I am trying to dynamically turn on/off the display of data for a circos-esque plot that I generated. The Code I have data stored in mfData and a ...
3
votes
2answers
105 views

How to add a label to a CopyEvaluate button?

I found a definition of a button Button[Defer[ Information[ \[SelectionPlaceholder], LongForm -> False]], None, BaseStyle -> "CopyEvaluate"] that is ...
3
votes
0answers
78 views

how to create a BACK button [closed]

Here is a piece of my code: ...
2
votes
1answer
155 views

Buttons Which Change Color, Each Time Pressed [closed]

I need to have 100 buttons, which their color is defined by the parity of number of times they are pressed: If they're pressed an even number of times their color is blue, and otherwise red. I don't ...
2
votes
2answers
75 views

Running “Animate” Using a Button

I made the button below for launching an Animate, but it doesn't work at all! Why? ...
2
votes
1answer
219 views

Why doesn't “Defer” work with “TableForm”?

Background:I want to create a "palette" that contains buttons that evaluate the selected part of the expression and replace the selection with the result, just like what the built-in palette ...
2
votes
1answer
50 views

Button action preventing parallel execution?

I couldn't find a better title, so I'll jump straight to the example! There is this long list of slow jobs to be executed in a parallel way, at the press of a button: ...
2
votes
2answers
65 views

How to paste multiple expression using PasteButton?

Is there a way to paste multiple expressions into notebook using PasteButton? For example, I want to do ...
2
votes
1answer
135 views

Assign one button to two variables

I am trying to use the one button to assign to two variables. Here is an example of how I want it to work. expression: ...
2
votes
2answers
84 views

How can I get a Button to evaluate an expression containing Get? [duplicate]

I have problems making Button evaluate an input like this one: Button["Load", Get["/Users/simonlausen/Desktop/Input/ex1.mx"]] ...
2
votes
0answers
62 views

How can I focus cursor at specific position? [duplicate]

Possible Duplicate: Programmatically move the cursor to a desired location on the screen I made a Button with the name of "Click",if we have to click on ...
1
vote
3answers
122 views

How to select the text on the button?

For example, I have a Button ...
1
vote
1answer
236 views

How To Track the Cursor Position?

I have 2 InputFields and 2 Buttons. I would like that when the user clicks the Pi Button or ...
1
vote
2answers
36 views

Updating Manipulate output from within a Button

Consider this (edit: Pause[3] represents some long computation the button should do): ...
1
vote
1answer
129 views

BindEvent binding own function

I need to change property of window when button gets pressed. There are pretty enough examples on Wolfram's website, but all they bind predefined function "Print[]" and I have no problems with ...
1
vote
1answer
131 views

Can't see updating performed by NMinimize[…,StepMonitor->(…)] outside of Button in which it's called [duplicate]

I've made a peak-fitting GUI in which I have a "Fit" button that, when pressed, calls NMinimize[...,StepMonitor->(step++)] to minimize a sum of squared ...
1
vote
1answer
68 views

Save plot by pressing on button

I want to save a certain graphics by pressing a button. Thinks work fine for something like this ...
1
vote
1answer
50 views

How to create a user interface, that when a user clicks a button the entire display changes? [closed]

For example, the 'main menu' user interface has three buttons each labeled with a different level. Whenever button is clicked how do you display that level of the game without creating a new notebook? ...
1
vote
1answer
120 views

Implementing a back button (in CDF)

I have a rather large notebook, which contains a lot of hyperlinks to different parts of the notebook. Is it possible to make a back button (maybe as a docked cell button?) so that when a reader ...
1
vote
1answer
90 views

How to make AutoAction take effect only one time?

WARNING: better don't try this when you have any relevant notebooks open, the generated palette will edit your currently selected notebook in ways which are not easily noticed or undone! ...
1
vote
0answers
56 views

Button to run a group of cells

I'm not sure how to create a minimal working example since I don't know how to post code that appears as cells but hopefully my question is simple enough that it won't be necessary. My apologies all ...
0
votes
1answer
141 views

Why are some Buttons not working in CDFPlayer?

I have two Buttons within a single panel. My problem is that after deploying that panel, the second Button is not working in the ...
0
votes
1answer
146 views

Show Progressbar after pressing a button

I've recently struggling with Buttons. So I understand Buttons have the form Button["text",action]. Now I want the action to be ...
0
votes
1answer
198 views

Calling functions which take their arguments interactively

Lets say I have a file named test.m containing some functions. ...
0
votes
2answers
171 views

Unwanted parentheses appearing in a notebook that is opened by a button

I am writing an interactive document and have an idea to make in-line buttons that on demand would create and bring up separate notebooks containing some explanations or a remindings. One example of ...