AddStopMenuItemAddStopMenuItem — creates a menu item that destroys the running application.
AddStopMenuItem (label)
labelThe name of the item, as a text string, that will actually appear on the menu.
A list containing two members: the ID number for this action, followed by a Gamma expression that is the action to be taken when a menu item is selected.
This method lets you create an item on a DataHub system tray menu that will exit the application and remove all event handlers and menu items.