DataView.AppendActionMenuSeparator

Prototypes

void AppendActionMenuSeparator( <String sItem> )

Parameters

String sItem
The name and position of the new menu separator.

Remarks

This method appends a new menu separator (a horizontal line) to the action menu. If sItem is omitted or it does not contain a newline character (\n), the separator is appended to the top-level menu. To append a separator to a submenu, you must specify sItem.

This method is equivalent to calling AppendActionMenuItem( sItem, "" ). See the AppendActionMenuItem documentation for a general discussion of adding items to the action menu.

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.AppendActionMenuSeparator( "Cascade\nSep1"J );
plot.AppendActionMenuItem( "Cascade\nItem 3"J,
    "print 'Item 3';" );
plot.AppendActionMenuSeparator();
plot.AppendActionMenuItem( "Item 4",
    "print 'Item 4';" );
/* Press F11 in the plot window to see the menu. */
See Also

DataView.AppendActionMenuItem
DataView.AppendActionMenuSeparatorToGroup
DataView.InsertActionMenuSeparator