BevelButton.InsertRow

From Xojo Documentation

Method

BevelButton.InsertRow(Row as Integer, Text as String)

Supported for all project types and targets.

Inserts a row in the position indicated by Row using Text as the menu item.

Sample Code

This code inserts a new row after "Second Item", bumping the separator and the last items down by one.

Me.Caption = "Items"
Me.CaptionAlign = 0 // flush left
Me.HasMenu = 2 // menu on right

Me.AddRow("First item")
Me.AddRow("Second item")
Me.AddSeparator
Me.AddRow("Third item")
Me.InsertRow(2, "Inserted Item")