represents a Cancel button in a dialog that closes the dialog window when clicked.
represents a button labeled Cancel that evaluates action when clicked.
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.
Examplesopen all close all
Basic Examples (1)
Create dialog input and use CancelButton to cancel the action: