Nevron Forum

Tooltips in the Diagram

https://www.nevron.com/Forum/Topic5305.aspx

By Patrick Bergeron - Monday, July 4, 2011

Hi,

I removed all the Controller Tools from my NDiagramView because I wanted a read-only diagram.  This works well; however, now I am trying to display tooltips and wonder if they are not working because I have some required Tools missing.  I tried to go back and add the default ones using the designer, but I am getting an error in Visual Studio 2010, something about not being able to instantiate NTool because it is abstract.

Before I spend too much time on this, here is the code I use:

shape.Style.InteractivityStyle = new NInteractivityStyle(string.Format("Remarks: '{0}'", attrib.Value));

I thought that if I hover over this shape in the diagram it would show the tooltip.  I confirmed in the debugger that my InteractionManager is set to a valid object.  Not sure what else could be wrong other than a missing Tool in the Controller.Tools collection.  Any ideas?

By Nevron Support - Monday, July 4, 2011

Hi,

You are missing the NMouseEventDelegatorTool, which is responsible for dispatching mouse events to the DDOM node behind the mouse pointer. Add this tool to the tools collection for tooltips to start working again.