Hot answers tagged

13 votes

Button action monitored with progress bar

Building on Kubas code here is an alternative which solves some (minor) problems: it will not leave behind scheduled tasks when the abort button is used, it works equaly well when the Alt+. shortcut ...
Albert Retey's user avatar
  • 23.5k
13 votes
Accepted

Evaluation leak from Dynamic in Button's action

To understand this, look at the typesetting: ...
John Fultz's user avatar
  • 12.6k
13 votes
Accepted

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

Why not just use the graphic in the question, or any other images that you like: Use ImageSize to control the final size of the button: An alternative, that I use ...
Mike Honeychurch's user avatar
11 votes

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

So I mentioned this in a comment but I'll get it out here for the bounty poster too. Searching for the "JLink`" in the autocomplete directory gave me this: ...
b3m2a1's user avatar
  • 46.6k
11 votes

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

Here's the general way this type of thing seems to be handled in the built-in things plus code to build the type of buttons you want. First the button code: ...
b3m2a1's user avatar
  • 46.6k
11 votes
Accepted

VoronoiMesh as a TogglerBar

Here are implementations for a MeshTogglerBar and MeshSetterBar based on my answer here (code below). Both implementations use <...
Lukas Lang's user avatar
  • 33.5k
11 votes
Accepted

Using graphics primitives as buttons

It might be easier to build your own button using EventHandler and CurrentValue: ...
Lukas Lang's user avatar
  • 33.5k
10 votes

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

A couple of images that come with Mathematica. Caveat: There's no guarantee that they will be present in all (future) versions. ...
Michael E2's user avatar
  • 234k
10 votes

VoronoiMesh as a TogglerBar

...
kglr's user avatar
  • 384k
10 votes
Accepted

Making a Mathematica version of Wordle interactive

This is a very minimal interactive wireframe to get you started. ...
Domen's user avatar
  • 18.9k
10 votes
Accepted

Fit text within a button

The following should work well for ordinary text, without any magic numbers or rasterization tricks required: ...
Lukas Lang's user avatar
  • 33.5k
9 votes

VoronoiMesh as a TogglerBar

...
MarcoB's user avatar
  • 65.8k
8 votes

In 10.3 System DialogInput execution error

Add Method -> "Queued" Button["Import File", Import[SystemDialogInput["FileOpen", ".txt"], "List"], Method -> "Queued"] ...
Nasser's user avatar
  • 137k
8 votes
Accepted

How can I create a "Run all code" button in a notebook?

Here is some code I wrote to make a palette that I use a lot. Maybe the it will work you, or at least give you ideas on how to do it. ...
m_goldberg's user avatar
  • 107k
7 votes
Accepted

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

You can use two individual instances of Button ...
Sascha's user avatar
  • 8,399
7 votes

In 10.3 System DialogInput execution error

The code above 9.0 is good Unfortunately, this is not true. Even in version 9 this code was not good, but it just did not warn you about it. Take this simpler example, that only prints the file-name ...
halirutan's user avatar
  • 112k
7 votes
Accepted

How to paste an equation to a graphics

In case you want to plot in place you can use something like: ...
Kuba's user avatar
  • 136k
7 votes

How to paste an equation to a graphics

According to the documentation, "PasteButton, evaluates its arguments in an ordinary way, so that expr is immediately evaluated" It is like you evaluate ...
Basheer Algohi's user avatar
7 votes

How to horizontally center a button in manipulate?

Another way is to use Grid for complex layouts. One drawback is that Delimiter does not work as in the original ...
Yves Klett's user avatar
  • 15.3k
7 votes
Accepted

How to make Button just works one time

Details aside, TogglerBar seems to fit your needs best: ...
Kuba's user avatar
  • 136k
6 votes
Accepted

Generate multiple buttons for distinct list elements

That's a typical use of With[]: ...
andre314's user avatar
  • 17.8k
6 votes

Multiple buttons on an Image

Actually, any button is an image. Therefore, you can create graphics background and put the button on it using Epilog->Inset[..] . The insets could be easy ...
Rom38's user avatar
  • 5,119
6 votes

How to create a button that deletes a character?

...
kglr's user avatar
  • 384k
6 votes
Accepted

Multiple buttons in a Manipulate: how do I get a good layout?

How about putting everything in the grid? Like so: ...
m_goldberg's user avatar
  • 107k
6 votes

Making a Mathematica version of Wordle interactive

Feel free to take a look at this on the Wolfram community that I did for fun: a facsimile of Wordle Moderators: update… I did not see that a link to this was added as a comment above. I am leaving ...
David Reiss's user avatar
6 votes
Accepted

How to launch a Manipulate (or a function that uses Manipulate) via a Button

Look at the documentation for Button. After clicking the button, the expression in the second argument, named action, gets evaluated. But if you want the result of ...
Domen's user avatar
  • 18.9k
5 votes

Function under Button, need help

I think this is what you are trying to achieve. Just check if the output is correct. One problem is that as you keep on clicking the button the results gets accumulated below the previous one. Note ...
Hubble07's user avatar
  • 3,584
5 votes

Error in Manipulate

This is not an answer. It is a long, long way from being an answer. It is a comment that needs to show a lot of code and an image. Here is your code after some clean up. It doesn't work, but at least ...
m_goldberg's user avatar
  • 107k
5 votes
Accepted

How to horizontally center a button in manipulate?

Place the Button in a Row. Using the dimensions that you have given of 600 for the plot and <...
Jack LaVigne's user avatar
  • 14.4k
5 votes
Accepted

Button to close cells

TL;DR Tell the button where to search, with, e.g. ButtonNotebook: ...
Kuba's user avatar
  • 136k

Only top scored, non community-wiki answers of a minimum length are eligible