Profile Picture

default and own context menu

Posted By Filip Mergental 11 Years Ago
Author
Message
Filip Mergental
Posted 11 Years Ago
View Quick Profile
Junior Member

Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 16, Visits: 1
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

Attachments
context_menu.png (154 views, 126.00 KB)


Similar Topics


Reading This Topic