WebMessageDialog.ActionButton

From Xojo Documentation

Read-Only Property (As WebMessageDialogButton )
WebMessageDialogButtonValue = aWebMessageDialog.ActionButton

New in 2020r1

Supported for all project types and targets.

The default button for the WebMessageDialog.

Notes

Even though this property is read-only, it has a WebMessageDialogButton instance assigned to it which you can modify.

The Return key is automatically mapped to this button though you can change that but altering the Default property of the button.

Sample Code

This example changes the button to be a non-default button and changes the caption of the ActionButton to "OK":

myDialog.ActionButton.Default = False
myDialog.ActionButton.Caption = "OK"

See Also

WebMessageDialogButton class, AlternateActionButton and CancelButton properties.