Programming with Reflection

image\rwnprg32.gif DeletePopupItem method

 

Syntax object.DeletePopupItem Popup, Item

 

Description

Deletes a specific item from a Reflection menu. You can delete all items and menus with ClearMenu. You can add new menu components with InsertPopupItem.

For example, starting from the default menu configuration, either of these commands can remove the Select All item from the Edit menu. Select All is the 12th item (including separators) and also the last item on the menu:

 Session.DeletePopupItem 2,12

 Session.DeletePopupItem 2, rcLastItem

Arguments

Popup Argument type: Integer or Enumeration
Specifies the number of the menu (also referred to as a popup) that contains the item to be deleted. For example, use 2 to delete an item from the Edit menu in the default menu configuration. Use rcLastPopup to delete an item from the last menu. Note: In the default menus, the Trace menu, which is located under the Connection menu, is menu number 4, making the Setup menu number 5.

Item Argument type: Integer or Enumeration
Specifies the number of the item to be deleted. Use rcLastItem to delete the last item in a menu. Items include separators as well as menu commands.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command