iOSMessageBox.Buttons

From Xojo Documentation

Method

iOSMessageBox.Buttons() As Text()

Supported on Mobile(iOS).

Gets the buttons for the message box.


Method

iOSMessageBox.Buttons(Assigns value() As Text)

Supported on Mobile(iOS).

Sets the buttons for the message box.

Notes

When there are only one or two buttons, they are shown side-by-side. The first button displays as bold. When there are more than two buttons, they are shown vertically. The first button added is the default and displays as bold at the bottom. The remaining buttons are in added in order an appear above the default button.

Sample Code

Displays a message box with multiple buttons. HelloMessage is an iOSMessageBox that was dragged onto the View from the Library:

HelloMessage.Title = "Hello"
HelloMessage.Message = "Hello, World!"

Var buttons() As Text
buttons.Append("Yes")
buttons.Append("No")
buttons.Append("Maybe")

HelloMessage.Buttons = buttons

HelloMessage.Show