Contextual Menu


Author
Message
Golay Jean-Philippe
Golay Jean-Philippe
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)
Group: Forum Members
Posts: 8, Visits: 1
Hi, I want to substitute the contextual menu with mine on the drawing view when I right click on a shape ?
Or how to disable contextual menu
Any idea
Thanks
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi,

The construction of a context menu for a particular diagram element is performed by NDiagramContextMenuBuilder an instance of which can be obtained from the the NDiagramCommandBarsManager.ContextMenuBuilder property.

To get full control over the context menus you can override the BuildContextMenu method of the NDiagramContextMenuBuilder in your subclass and assign your subclass instance to the NDiagramCommandBarsManager.ContextMenuBuilder property.

If the BuildContextMenu method returns null for a particular object the context menu is not shown.

Each context menu consists of three types of commands:

1. Specific - commands that are specific to the type of object - for example 1D shapes will have a reverse command.

2. Generic - commands that are common for all types of elements - for example cut/copy/paste etc.

3. Verbs - commands that are returned by the Verbs property of the diagram element.

Hope this helps - questions or comments - please feel free...

Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search