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.
- CancelButton is equivalent to CancelButton[DialogReturn[$Canceled]].
- In dialogs created with DialogInput or CreateDialog, pressing Esc is effectively equivalent to clicking the Cancel button.
- If there are several Cancel buttons in a single dialog, Esc will use the first one in the dialog.
- CancelButton has the same options as Button.