DesktopPopupMenu.AddSeparator

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

DesktopPopupMenu.AddSeparator()

New in 2021r3

Supported for all project types and targets.

Adds a separator line to the popup menu.

Notes

Windows and Linux do not support separators within PopupMenus, so this adds a row with the text "-" that can be selected by the user.

Sample Code

The following example adds a separator between some values:

Me.AddRow("Banana")
Me.AddRow("Orange")
#If TargetMacOS Then
Me.AddSeparator
#Endif
Me.AddRow("Tomato")