PopupMenu.AddRow

From Xojo Documentation

Method

PopupMenu.AddRow(Item As String)

Supported for all project types and targets.

Appends Item in a new row to the end of the list.

Notes

You can add a "-" on macOS (instead of calling PopupMenu.AddSeparator) to add a separator. Windows and Linux do not support separators within PopupMenus, so this simply adds a row with the text "-" that can be selectable by the user.

Example

The following example in the Open event of the control adds two rows to the menu.

Me.AddRow("Banana")
Me.AddRow("Orange")