Mathematica > Dynamic Interactivity > Custom Interface Construction > Dialog Boxes >

CancelButton

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.
  • 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.
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team