📚 SAP Business One SDK Help

RightClickEvent Event
See Also 
eventInfo
The object that holds the event information
BubbleEvent

Indicates how the application handles the event. Relevant only when ContextMenuInfo.BeforeAction is true.

  • True: The application shows the context menu after the current event handler is finished (default).
  • False: The application does not show the context menu.
  • Description

    Occurs when an end user clicks the right mouse button on a form.

    Use this event to create a right-click menu for your add-on forms, or to modify the right-click menu for system forms. 

    Syntax

    Visual Basic
    Public Event RightClickEvent( _
       ByVal eventInfo As ContextMenuInfo, _
       ByRef BubbleEvent As Boolean _
    )

    Parameters

    eventInfo
    The object that holds the event information
    BubbleEvent

    Indicates how the application handles the event. Relevant only when ContextMenuInfo.BeforeAction is true.

  • True: The application shows the context menu after the current event handler is finished (default).
  • False: The application does not show the context menu.
  • Remarks

    By default, the right-click menu displays all the menu items from the Edit, Data, and Goto menus.

    If you want to modify the right-click menu for a specific item, catch the event before notification and modify the Edit, Data, and Goto menus as required. Then, catch the event after notification and remove your changes to restore the menus.

    Example

    See Also