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

learn more… | top users | synonyms

9
votes
3answers
409 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: ...
6
votes
4answers
477 views

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

Button[] beguiles me. A simple example follows: ...
2
votes
1answer
248 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
332 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 ...
19
votes
5answers
2k 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 <...
22
votes
4answers
612 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 ...
6
votes
2answers
138 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
1answer
381 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 ...
7
votes
4answers
271 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}] ...
3
votes
1answer
241 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: ...
10
votes
1answer
111 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 ...
4
votes
2answers
170 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: ...
0
votes
1answer
384 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 ...
1
vote
1answer
176 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 ...
5
votes
3answers
543 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 ...
4
votes
1answer
105 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: ...
4
votes
1answer
464 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. <...
5
votes
3answers
293 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?
4
votes
1answer
259 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: ...
1
vote
1answer
97 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
1answer
179 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 ...