DataView.CheckActionMenuItem

Prototypes

void CheckActionMenuItem( String sExistingItem <, boolean bCheck> )

Parameters

String sExistingItem
An existing menu item. See the documentation for AppendActionMenuItemToGroup for ways to specify sExistingItem for cascading menus.

boolean bCheck
If bCheck is true, the specified item is flagged with a check mark. If bCheck is false, any check mark on the item is removed. Calling this method without specifying the bCheck parameter is equivalent to calling it with bCheck equal to true.

Remarks

This method controls whether an item on the action menu is flagged with a check mark.

You cannot place a check mark on a cascading menu item.

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

plot.AppendActionMenuItem( "Item 1",
    "print 'Item 1';" );
plot.AppendActionMenuItem( "Item 2",
    "print 'Item 2';" );
plot.CheckActionMenuItem( "Item 2" );
/* Press F11 in the plot window to see the menu. */
See Also

DataView.BulletActionMenuItem
DataView.EnableActionMenuItem