# MessageDialogButton

Xojo provides a <span class="title-ref">MessageDialogButton</span> control for desktop, mobile and web projects:

- `MessageDialogButton</api/user_interface/desktop/messagedialogbutton>`
- `WebMessageDialogButton</api/user_interface/web/webmessagedialogbutton>`

<div class="tip">

<div class="title">

Tip

</div>

For mobile apps, `MobileMessageBox</api/user_interface/mobile/mobilemessagebox>` provides most of the same functionality.

</div>

## Common members

These properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

### Properties

| Name    | Description                                                    |
|---------|----------------------------------------------------------------|
| Cancel  | If `True</api/language/true>`, the button is a cancel button.  |
| Caption | The text that appears on the button.                           |
| Default | If `True</api/language/true>`, the button is a default button. |
| Visible | If `True</api/language/true>`, the button is visible.          |

<div class="seealso">

`MessageDialogButton</api/user_interface/desktop/messagedialogbutton>` and `WebMessageDialogButton</api/user_interface/web/webmessagedialogbutton>`

</div>
