Hi,
The tool tips in Nevron Diagram for .NET can only contain plain text. If you want to provide your own tool tips, you can subscribe to the NodeMouseEnter event of the drawing document's event sink service:
private void OnEventSinkService_NodeMouseEnter(NNodeViewEventArgs args)
{
if (args.HitNode is NShape || args.HitNode is NModel)
{
NDrawingView drawingView = args.View as NDrawingView;
if (drawingView != null)
{
m_ToolTipComponent.RemoveAll();
m_ToolTipComponent.SetToolTip((NDrawingView)args.View, args.HitNode.GetType().Name);
args.Handled = true;
args.Processed = true;
}
}
}
private ToolTip m_ToolTipComponent;
The code above shows the type of the hovered shape as its tool tip. To create a WinForms tool tip component subscribe to this event handler you can use the following code:
m_ToolTipComponent = new ToolTip();
document.EventSinkService.NodeMouseEnter += OnEventSinkService_NodeMouseEnter;