BevelButton.InsertRow

From Xojo Documentation
Jump to: navigation, search
Method

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

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

Example

This example 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")
</rbcode)
Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About