Usage Boolean AnnoSetMenuItemReturnValue (Menu As LONGLONG, MenuItem As Long, RetValue As Long)
Description This method sets the identification of the menu item in the user defined pop-up menu.
Parameters Menu LONGLONG Custom pop-up menu
MenuItem Long Index of the menu item in the menu. This is a zero based integer.
RetValue Long This parameter must be greater than zero.
Return value TRUE on success, otherwise FALSE. If any error occurs, you can call the GetLastAnnoError method for the last error code.
Programming Notes See AnnoGetMenuItemReturnValue for more information.
If you create a custom pop-up menu, this menu will be dispayed when you click the right mouse button. You can change the default pop-up menu in the annotation. When the user selects a menu item, an event will be raised. This event informs the user about the type of the selected annotation object and the selected menu item. For example you add a menu item to the menu with name “First Menu” and RetValue 1. If the user clicks on the “First Menu” in the pop-up menu, the selected menu item information will be 1 in the event sent. If the return value in the event is 0, the user didn’t select a menu item from the menu.