void ReplaceActionMenuItemText( String sExistingItem, String sNewItem )
String sExistingItem
An existing menu item. The new item will replace the existing item. See the documentation for AppendActionMenuItemToGroup for ways
to specify sExistingItem for cascading menus.
String sNewItem
The new menu item.
This method replaces the text associated with an item on the action menu. The items specified by sExistingItem and sNewItem must be on the same menu.
You cannot replace a menu separator.
This method is equivalent to calling ReplaceActionMenuItem( sExistingItem, sNewItem, "" ).
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.ReplaceActionMenuItemText( "Item 1", "First Item" ); /* Press F11 in the plot window to see the menu. */
DataView.AppendActionMenuItem
DataView.ReplaceActionMenuItem
DataView.ReplaceActionMenuItemCode