DesktopPopupMenu.AddRowAt

From Xojo Documentation

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")