WebMessageDialog.ButtonPressed

From Xojo Documentation

Event


WebMessageDialog.ButtonPressed(button As WebMessageDialogButton)

New in 2020r1

Supported for all project types and targets.

A button was pressed in the WebMessageDialog.

Sample Code

You can determine which button was pressed by examining properties of the button parameter. In this example, the code compares the button parameter to the three different properties to see which one it is:

Select Case button
Case Me.ActionButton
MessageBox("Action button pressed.")
Case Me.AlternateActionButton
MessageBox("Alternate Action button pressed.")
Case Me.CancelButton
MessageBox("Cancel button pressed.")
End Select

See Also

WebMessageDialogButton class.