CancelButton
represents a Cancel button in a dialog that closes the dialog window when clicked.
CancelButton[action]
represents a button labeled Cancel that evaluates action when clicked.
CancelButton[label,action]
uses label as the label for the button.
Details and Options

- CancelButton[] is equivalent to CancelButton[DialogReturn[$Canceled]].
- In dialogs created with DialogInput or CreateDialog, pressing
is effectively equivalent to clicking the Cancel button.
- If there are several Cancel buttons in a single dialog,
will use the first one in the dialog.
- CancelButton has the same options as Button.
Examples
open allclose allBasic Examples (1)
Create dialog input and use CancelButton to cancel the action:
Applications (2)
Properties & Relations (3)
See Also
Button DefaultButton ChoiceButtons DialogReturn DialogInput CreateDialog
Tutorials
Related Guides
Introduced in 2007
(6.0)