The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
4answers
53 views

Slider for different plots

Hi I've got 12 different plots and I want to be able to cycle through them with a slider, however, none of the options for manipulate or slider seem to be able to handle multiple plots. My parameter ...
4
votes
0answers
38 views

How to make a button that allow me to control a Manipulate module? [duplicate]

I'm trying to use button that allow me to control a manipulate module. Here's what I did now, it's really simple: ...
3
votes
2answers
47 views

How to show and hide text by a button

I'm trying to implement a button that can show and hide output text in a panel/tab, but I can't find a specific command to do that. I tried StringReplace, but it doesn't work for me.
2
votes
2answers
46 views

How to combine Toggler and Button?

The Play function defines a toggle button to start and stop: I'm trying to emulate that, but with a single button. I feel like this is a common enough task that this question should be answered ...
8
votes
2answers
248 views

Palette button with progress bar

Let's say you have a palette with a button that has to do some time-consuming task when clicked: ...
1
vote
1answer
75 views

Interfaces: Importing files, processing them and exporting the results

We have a simple interface with two import file buttons, one field to enter a number $x$, one field to enter a file export name, and one 'Run' button. The mathematical operation when hitting 'Run' ...
2
votes
2answers
58 views

How do I size 'Button' controls to closely bound a single character?

I have a button containing a single character, generated with, for example Button["X", Null] but that is by default much wider than it should be: I want the ...
1
vote
1answer
40 views

Button for expanding a cell? [duplicate]

How can I create a button which sits next to the cell, like so: http://i.imgur.com/ZFkgn5q.jpg When you click the button it expands the cell, like this (note the cells on the right): ...
1
vote
2answers
60 views

Updating Manipulate output from within a Button

Consider this (edit: Pause[3] represents some long computation the button should do): ...
4
votes
2answers
106 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
92 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: ...
1
vote
0answers
102 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 ...
3
votes
0answers
88 views

how to create a BACK button [closed]

Here is a piece of my code: ...
0
votes
0answers
71 views

Can I reach a breakpoint when I press a button and call a function?

I have a function and inside it I put a breakpoint on the first instruction in the function. I made a Button which calls the ...
5
votes
1answer
97 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 ...
2
votes
1answer
62 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: ...
6
votes
2answers
112 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 ...
3
votes
2answers
87 views

Running “Animate” Using a Button

I made the button below for launching an Animate, but it doesn't work at all! Why? ...
1
vote
3answers
129 views

How to select the text on the button?

For example, I have a Button ...
1
vote
1answer
83 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 ...
0
votes
1answer
271 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 ...
4
votes
3answers
177 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 ...
2
votes
2answers
72 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 ...
3
votes
1answer
161 views

Dynamic inside Button

This bit of code runs a little animation of a stochastic process: ...
3
votes
1answer
163 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 ...
-1
votes
1answer
115 views

Button with for loop

How can I call a function that has a for loop inside a button? If I just write button[{"name", function[]}] nothing happens.
5
votes
3answers
416 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 ...
5
votes
3answers
379 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 ...
2
votes
1answer
137 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: ...
1
vote
1answer
150 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 ...
2
votes
1answer
184 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 ...
0
votes
0answers
32 views

Asynchronous evaluation of a button's action [duplicate]

What would be the best way to have the value of x update before the pause (or a similarly slow function) finishes executing? ...
1
vote
1answer
121 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 ...
3
votes
2answers
111 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 ...
0
votes
1answer
207 views

Calling functions which take their arguments interactively

Lets say I have a file named test.m containing some functions. ...
0
votes
2answers
188 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 ...
1
vote
1answer
95 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! ...
2
votes
2answers
85 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"]] ...
4
votes
2answers
202 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: ...
1
vote
1answer
139 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 ...
5
votes
1answer
307 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 ...
3
votes
1answer
191 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: ...
20
votes
4answers
484 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 ...
4
votes
3answers
342 views

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

Button[] beguiles me. A simple example follows: ...
2
votes
1answer
231 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 ...
4
votes
1answer
224 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: ...
7
votes
4answers
245 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}] ...
2
votes
0answers
65 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 ...
5
votes
3answers
263 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?