Hello,
I would like to ask if I use an edit mode in a diagram correctly because I have a problem with displaying my context menu when I call the nDiagramCommandBarsManager.Clear()
(specifically - over my own context menu displays default context menu - see picture contex_menu.jpg)
When I want to switch an edit mode I use this code :
NNodeTreeEnumerator en = new NNodeTreeEnumerator(nDrawingView.Document, NFilters.TypeNShape, -1, TreeTraversalOrder.DepthFirstPreOrder);
while (en.MoveNext())
{
NShape shape = (NShape)en.Current;
NAbilities protection = shape.Protection;
protection.All = !editMode;
shape.Protection = protection;
}
if (editMode) nDiagramCommandBarsManager.Recreate();
else nDiagramCommandBarsManager.Clear();
Thanks,
Daniela