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

ChoiceButtons

ChoiceButtons
represents a pair of OK and Cancel buttons that close a dialog.
ChoiceButtons
represents OK and Cancel buttons that evaluate the corresponding when clicked.
ChoiceButtons
uses the to label the buttons.
  • ChoiceButtons arranges OK and Cancel buttons in the conventional order for the current computer system.
OK and Cancel buttons display in the standard order for the current computer system:
Specify an action to evaluate when the buttons are clicked:
OK and Cancel buttons display in the standard order for the current computer system:
In[1]:=
Click for copyable input
Out[1]=
 
Specify an action to evaluate when the buttons are clicked:
In[1]:=
Click for copyable input
Out[1]=
Use custom labels:
Specify options for each button:
Specify options to the grid around the buttons:
Use the buttons to return from a dialog window:
A login dialog:
New in 7