Before RightClick

The BeforeRightClick event handler enables you to take action when a user right-clicks the document. For example, you can add a menu item to the default context menu whenever the document is right-clicked. For a code example, see Listing 6.22, which shows how to add an item to the context menu when a user right-clicks a Bookmark control. If you add code to the BeforeRightClick event handler of both the Document and the Bookmark, both events are raised when a user double-clicks the Bookmark control. If you do not want both events to be handled, you must write code to determine which object has raised the event, and then handle the appropriate event.

0 0

Post a comment