This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ButtonBar

ButtonBar
represents a bar of buttons with labels that perform actions when pressed.
  • The and can be any expressions.
  • Possible additional settings for the Appearance option include:
"Horizontal"equally spaced horizontally
"Vertical"equally spaced vertically
"Row"laid out like text, allowing linewrapping
Create a bar of buttons that print output:
Create a bar of buttons that print output:
In[1]:=
Click for copyable input
Out[1]=
Different predefined alignment options:
By default, the button function does not evaluate until you click it:
By setting AutoAction, the button function evaluates as you mouseover the button area:
Change the background colors:
By default, ButtonBar is enabled:
By setting Enabled->False, the buttons are disabled but visible in their current state:
By default, the button function is sent to the kernel for evaluation:
By setting Evaluator, the button functions are evaluated in the front end:
Not all functions are available in the front end:
By setting FrameMargins, you make the button content area larger:
By setting ImageMargins, you make the button area larger:
Use preset values:
Or use any values:
By setting the second element, you can also control the height:
A fully customized image size:
Button functions are evaluated on a preemptive link, which times out after five seconds:
Use Method to evaluate button functions on the main link, which never times out:
New in 7