This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
 Built-in Mathematica Symbol

# ButtonBox

 ButtonBox[boxes]is a low-level box construct that represents a button in a notebook expression.
• ButtonBox is the low-level representation of Button. Except for low-level notebook expression manipulation, ButtonBox should not need to be used directly.
• ButtonBox[boxes] displays as boxes and performs an action when it is clicked.
• The default action is to paste boxes at your current insertion point. Other actions can be specified using options.
• ButtonBox objects are used to implement palette buttons, hyperlinks and other active elements in notebooks.
• ButtonBox objects are active when either they or the cell that contains them has the option .
• When ButtonBox objects are active, they perform an action whenever they are clicked. Otherwise, clicking them simply selects them or their contents.
• The following options affecting button appearance can be given:
 Background Automatic button background color ButtonFrame "Palette" the type of frame for the button ImageSize Full the size of the button FrameMargins Automatic the margin in printer's points around the contents of a button ButtonMinHeight 1.0 the minimum total height of a button in units of font size
• The following options affecting button action can be given:
 ButtonData Automatic the second argument to supply to the button function ButtonFunction (pasting function) the function to apply when the button is clicked ButtonSource Automatic where to get the first argument of the button function Enabled Automatic whether to make the button always active Evaluator None where to send the button function expression for evaluation
• ButtonBox[...] is by default interpreted as Button[...] if it is given as input to the Mathematica kernel.
Display a button that opens a new notebook window when clicked:
Display a button that assigns a random number to r:
See the value of r after clicking the button:
Display a button that opens a new notebook window when clicked:
 Out[1]//DisplayForm=

Display a button that assigns a random number to r:
 Out[1]//DisplayForm=
See the value of r after clicking the button:
 Out[2]=