BevelButton.AddSeparator

From Xojo Documentation

Method

BevelButton.AddSeparator()

Supported for all project types and targets.

Adds a row to the bottom of the menu and uses a separator as the menu "item".

Sample Code

The following code adds a separator between the second and third menu items.

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