DataView.AppendActionMenuSeparatorToGroup

Prototypes

void AppendActionMenuSeparatorToGroup( String sExistingItem <, String sItem> )

Parameters

String sExistingItem
An existing menu item. The new item will be appended to the end of the group that contains this item.

String sItem
The name of the new menu separator. This string is optional if sExistingItem is on the top-level menu.

Remarks

This method appends a new menu separator (a horizontal line) to the end of the group that contains an existing action menu item. The group containing the existing item ends either with the first menu separator after the item or at the end of the menu or submenu.

The items specified by sExistingItem and sItem must be on the same menu.

This method is equivalent to calling AppendActionMenuItemToGroup( sExistingItem, sItem, "" ). See the documentation for AppendActionMenuItemToGroup for further details.

Example
declare ScatterPlot plot;
plot = ScatterPlot.Create( "Action Menu", 1:10, 1:10 );

plot.AppendActionMenuItem( "Item 1",
    "print 'Item 1';" );
plot.AppendActionMenuItem( "Cascade\nItem 2"J,
    "print 'Item 2';" );
plot.AppendActionMenuSeparatorToGroup( "Cascade\n"J,
    "Cascade\nSep1"J );
plot.AppendActionMenuItem( "Cascade\nItem 3"J,
    "print 'Item 3';" );
plot.AppendActionMenuSeparatorToGroup( "Cascade" );
plot.AppendActionMenuItem( "Item 4",
    "print 'Item 4';" );
/* Press F11 in the plot window to see the menu. */
See Also

DataView.AppendActionMenuItemToGroup
DataView.AppendActionMenuSeparator
DataView.InsertActionMenuSeparator