DesktopPopupMenu.AddSeparator

From Xojo Documentation

Revision as of 19:16, 18 January 2022 by Afoley (talk | contribs) (Notes: 58422)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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")