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 the Button's properly:
Graphics[{Inset[ExampleData[{"TestImage", "Lena"}],…
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 the gif. The button should be clickable on the…
Clicking on the button generated by the following code:
Button["Start",
SelectionMove[SelectedNotebook[], Before, Notebook];
Catch[Do[SelectionMove[SelectedNotebook[], Next, Cell];
Module[{r}, If[MatchQ[r =…
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.
(*Create list of 5 random data sets*)
datalist = RandomInteger[10, {5,…
I have a huge set of code to accomplish a data transformation. I have saved this set of code as eg:
codeset:=Module[{},
FileNameSetter[Dynamic[Tab2excelFileLocation]];
RawDataTonnages =Import[Tab2excelFileLocation,…
I found a definition of a button
Button[Defer[ Information[ \[SelectionPlaceholder], LongForm -> False]],
None, BaseStyle -> "CopyEvaluate"]
that is doing a good job.
How can I add a label to this button definition similar to Button[label,…
I am attempting to make my actions menus "prettier". :) Using the code below...
ActionMenu["Print Factorials", {"4!" :> Print[4!], "7!" :> Print[7!],
"10!" :> Print[10!]}]
results in...
I would like the palette look of the Action Menu box…
I want to save a certain graphics by pressing a button. Thinks work fine for something like this
Button["Save",
export = Histogram[RandomVariate[NormalDistribution[0, 1], 10^3]];
Export["test.pdf", export]
]
By increasing the number of data…
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 "Algebraic Manipulation" does. I found a way to achieve…
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 about this, here and elsewhere. Yet none available so…
For example, I have a Button
Button["http://www.wolfram.com",
NotebookLocate[{URL["http://www.wolfram.com"], None}],
Appearance -> None]
How to select text with the mouse?
I'd like to click Button to activate a particular cell the same as if I'd typed ctrl-enter on the keyboard. So far, I can't get Button to do much. It will do something simple like Print a string, but on any more complex commands it always fails.
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!
AutoAction will repeatedly take effect when cursor over the…
I have two sets of parameters p1[i] and p2[i], (i=ag, cs, wh) for which I want to create two separate button bars. I have the following conditions:
Given two equations:
Manipulate[
...
gr[i]=xx*p1[i];
mu[i]=yy*p2[i];
p1[i]={0,1};
…
for list li1 = {"A", "B", "C"}; I would like to generate ActionMenu but that will be generated on the fly, and on selection will assign value that we don't know in advance (it must be computed) to some variable k1. Eg. in this example it will assign…