PopupMenu.AddSeparator

From Xojo Documentation

Method

PopupMenu.AddSeparator()

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 simply adds a row with the text "-" that can be selected by the user.

This method is deprecated for ComboBox, which does not support separators on any platform. This method will just add 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")