DesktopPopupMenu.AddRowAt

From Xojo Documentation

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

DesktopPopupMenu.AddRowAt(index as Integer, Item as String)

New in 2021r3

Supported for all project types and targets.

Creates a new row at index (moving the existing rows down). The first row is numbered 0.


Method

DesktopPopupMenu.AddRowAt(index as Integer, Item as DesktopMenuItem)

New in 2021r3

Supported for all project types and targets.

Creates a new row at index (moving the existing rows down). The first row is numbered 0.

Example

The following example adds a row at the 4th position.

PopupMenu1.AddRowAt(3,"Harry")