MobileMessageBox.Buttons

From Xojo Documentation

Revision as of 15:33, 19 November 2020 by PLefebvre (talk | contribs) (Changed Append to Add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

MobileMessageBox.Buttons() As String()

Supported on Mobile.

Gets the buttons for the message box.


Method

MobileMessageBox.Buttons(Assigns value() As String)

Supported on Mobile.

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 MobileMessageBox that was dragged onto the Screen from the Library:

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

Var buttons() As String
buttons.Add("Yes")
buttons.Add("No")
buttons.Add("Maybe")

HelloMessage.Buttons = buttons

HelloMessage.Show