Profile Picture

Contextual Menu

Posted By Golay Jean-Philippe 14 Years Ago
Author
Message
Golay Jean-Philippe
Posted 14 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 14 Years Ago
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
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
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





Similar Topics


Reading This Topic