DesktopPopupMenu.AddRow
From Xojo Documentation
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site! |
Method
Appends Item in a new row to the end of the list.
Method
DesktopPopupMenu.AddRow(Item As DesktopMenuItem)
New in 2021r3
Supported for all project types and targets.
New in 2021r3
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 DesktopPopupMenu.AddSeparator) to add a separator. Windows and Linux do not support separators within PopupMenus, so this adds a row with the text "-" that can be selectable by the user.
Example
The following example in the Opening event of the control adds two rows to the menu.