Class

# WebMessageDialogButton

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

The type of button that appears in the `WebMessageDialog</api/user_interface/web/webmessagedialog>`.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                          | Type                                  | Read-Only | Shared |
|-----------------------------------------------|---------------------------------------|-----------|--------|
| `Cancel<webmessagedialogbutton.cancel>`       | `Boolean</api/data_types/boolean>`    |           |        |
| `Caption<webmessagedialogbutton.caption>`     | `String</api/data_types/string>`      |           |        |
| `Default<webmessagedialogbutton.default>`     | `Boolean</api/data_types/boolean>`    |           |        |
| `Indicator<webmessagedialogbutton.indicator>` | `Indicators<webuicontrol.indicators>` |           |        |
| `Outlined<webmessagedialogbutton.outlined>`   | `Boolean</api/data_types/boolean>`    |           |        |
| `Visible<webmessagedialogbutton.visible>`     | `Boolean</api/data_types/boolean>`    |           |        |

## Property descriptions

<div id="webmessagedialogbutton.cancel">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebMessageDialogButton.Cancel

**Cancel** As `Boolean</api/data_types/boolean>`

> Set to `True</api/language/true>` to indicate that the button will respond to the Esc key and, on macOS, pressing the Command-period sequence.
>
> Only one button can be the Cancel button. Some operating systems do not allow one button to be both the Cancel and Default buttons.

<div id="webmessagedialogbutton.caption">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebMessageDialogButton.Caption

**Caption** As `String</api/data_types/string>`

> The text displayed in the button.

<div id="webmessagedialogbutton.default">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebMessageDialogButton.Default

**Default** As `Boolean</api/data_types/boolean>`

> Set to `True</api/language/true>` to highlight the button as the default button in the `WebMessageDialog</api/user_interface/web/webmessagedialog>`. By default, the ActionButton's Default property is `True</api/language/true>`.
>
> The Default button will respond to the Enter and Return keys. Only one button can be the Default button. Some operating systems do not allow one button to be both the Default and Cancel buttons.

<div id="webmessagedialogbutton.indicator">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebMessageDialogButton.Indicator

**Indicator** As `Indicators<webuicontrol.indicators>`

> The color scheme for the control.
>
> When a <span class="title-ref">WebMessageDialogButton</span>'s `Default<webmessagedialogbutton.default>` or `Cancel<webmessagedialogbutton.cancel>` properties are `True</api/language/true>`, the Indictor property is ignored as Default and Cancel buttons have a default indicator.

<div id="webmessagedialogbutton.outlined">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebMessageDialogButton.Outlined

**Outlined** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>` the button will appear in outlined style.

<div id="webmessagedialogbutton.visible">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebMessageDialogButton.Visible

**Visible** As `Boolean</api/data_types/boolean>`

> Set to `True</api/language/true>` to show the button.
>
> Only the ActionButton is shown by default. It has no effect on the ActionButton.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | Web |
| **Operating Systems** | All |

<div class="seealso">

`Object</api/data_types/additional_types/object>` parent class; `WebMessageDialog</api/user_interface/web/webmessagedialog>` class.

</div>
